Results 1 to 5 of 5

Thread: CSS Affecting Elements Of My Page

  1. #1
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS Affecting Elements Of My Page

    Below is a sample of my CSS page, I'm having an issue with the floats that are commented out, they are affecting my th even though I haven't actually classed anything in my html... Any ideas?

    <code>
    /* CSS Document */

    body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: white;
    font-family: "Lucida Grande";
    font-size: x-small;
    }
    table.outer {
    border:1px solid #fff;
    width: 178px;
    }
    /*.left {
    float: left;
    }
    .right {
    float: right;
    }*/
    table {
    clear: right;
    width: 700px;
    line-height: 1.4em;
    border-collapse: collapse;
    border: 1px solid #000;
    color: white;
    background: #000;
    font-family: "Lucida Grande";
    font-size: x-small;
    }</code>

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    you could've removed the commented css class items and check the page (clear your browser cache)

  3. #3
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yea when I remove the comments... It screws up my table header...

  4. #4
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Can you provide the complete page source code?

  5. #5
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Is a link ok? You'll see that the 'main' table class has now grey borders, before I set up the 'outer' table class these were black. Also the link's in the <th> aren't working correctly... http://www.curiousclothing.com/css_test.php

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •