Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Mar 2006
    Posts
    459
    Thanks
    3
    Thanked 0 Times in 0 Posts

    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
    Regular Coder karinne's Avatar
    Join Date
    May 2006
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can you post a link? or at leas the whole thing (HTML AND CSS)?
    a web design portfolio - blog - last.fm - del.icio.us - widow's walk

    Getting on the Web Standards band-wagon? Get these books - Designing With Web Standards and Web Standard Solutions

  • #3
    Regular Coder
    Join Date
    Mar 2006
    Posts
    459
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Is this 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
    Last edited by tomyknoker; 04-04-2007 at 04:23 PM.


  •  

    Posting Permissions

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