SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Pandora Tipem's Avatar
    Join Date
    Feb 2006
    Posts
    450
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Man I hate CSS - 2 column layout

    http://bumpwire.com/testcolumn.php

    View the source... it's exceptionally easy to understand.

    Now why isn't the red border going down around the entire div? It's only covering 1px of the div. Why won't the #content container expand down? It's like there is nothing even in the #content container? Errr... thanks.
    Tipem no fancy sig, yup
    Need Neopets Help? Try Neopets
    fun adoptable eggs

  2. #2
    SitePoint Wizard rguy84's Avatar
    Join Date
    Sep 2005
    Location
    Durham, NC
    Posts
    1,659
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    The border only covers 1px because it thinks that it has nothing in that div. Add
    HTML Code:
    <div style="height:1px;clear:both;"></div>
    just before the closing </div> for content.

    HTH
    Ryan B | My Blog | Twitter

  3. #3
    SitePoint Wizard bronze trophy Centauri's Avatar
    Join Date
    May 2007
    Location
    Newcastle, Australia
    Posts
    3,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    At the top of this css forum you will find a sticky thread "CSS FAQ" - have a read on clearing floats in there.


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
  •