www.webdeveloper.com
Results 1 to 4 of 4

Thread: Tables in Container

  1. #1
    Join Date
    Dec 2005
    Posts
    2

    Tables in Container

    I don't have much hair on my head anymore after trying to deal with this:

    I have a div container... Then inside I have a table...

    In IE, the div container continues with the table.. and displays properly.

    In FF the container only goes a little ways, and the table keeps going...

    What I am doing wrong????

    here is the page in question:

    http://missing.link.ca/powerpioneers.ca/board.html

    Jen

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,617
    You need to "clear the floats", as they say.

    Add this right before the closing </div> for the container div:
    Code:
    <div class="clear"></div>
    Add this to your CSS:
    Code:
    .clear {
      clear: both;
      font-size: 0;
      line-height: 0;
      margin: 0;
      padding: 0;
      height: 0;
    }
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Dec 2005
    Posts
    2
    Thank you.. that did the trick!! Took a bit of thought process for me to figure out what the correct end div tag it was

    Thanks again!

    Jen

  4. #4
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,617
    A good practice is to comment the end tags, something like:
    Code:
    <div id="container">
      <div id="menu">
        <p>Some content here</p>
      </div> <!-- menu -->
      <div id="main">
        <p>content goes here</p>
      </div> <!-- main -->
    </div> <!-- container -->
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles