SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot dbworm's Avatar
    Join Date
    Apr 2003
    Location
    Lausanne
    Posts
    115
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Container not expanding?

    With the following code, the container is expanded with IE6 but not with Firefox. What's wrong?
    Code:
    CSS
     #container {
      top: 0;
      margin: 0;
      border: 1px dotted;
      margin-left: auto;
      margin-right: auto;
      width: 760px;
      }
    
     #logo {
      border: 1px red solid;
      background: silver;
      height: 40px;
      width: 300px;
      float: left;
     }
    
     #rotator {
      border: 1px red solid;
      background: cornsilk;
      height: 40px;
      width: 300px;
      float: right;
     }
    
    HTML
    
    <div id="container">
    
    <div id="logo"></div>
    <div id="rotator"></div>
    
    </div> <!-- container -->
    Thanks, Dan

  2. #2
    Put your best practices away. The New Guy's Avatar
    Join Date
    Sep 2002
    Location
    Canada
    Posts
    2,087
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Its just the good old clearing bug.

    Code:
     <div id="container">
     
     <div id="logo"></div>
     <div id="rotator"></div>
     <div style="clear: both"></div>
     
     </div>
    "A nerd who gets contacts
    and a trendy hair cut is still a nerd"

    - Stephen Colbert on Apple Users

  3. #3
    SitePoint Zealot dbworm's Avatar
    Join Date
    Apr 2003
    Location
    Lausanne
    Posts
    115
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by The New Guy
    Its just the good old clearing bug.

    Code:
     <div id="container">
     
     <div id="logo"></div>
     <div id="rotator"></div>
     <div style="clear: both"></div>
     
     </div>
    Aaargh! yes, thank you.
    Dan


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
  •