SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict trigger's Avatar
    Join Date
    Jun 2003
    Location
    Eagan
    Posts
    342
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    why use clear :left and :right, when you can clear:both

    I'm trying to put together a site, but I'm having a terrible time. Take a look at http://www.nasi.com/test.htm. Right now its set to be in the quirky IE 6 mode with the line
    <?xml version="1.0" encoding="iso-8859-1"?>
    , but I want to have it render in standards mode, so it doesn't look so bad in opera and mozilla. The navbar (Systems, Storage, etc) at the top that has clear:right; defined in the ul. The code is something I "borrowed" from a tutorial, and have switched to look how I want it to. It seems like when I get rid of the clear:right property, it messes up the font sizing, nesting of the navcontainer background into the navlist, and background color of the bar on the left. Should I just try clear:both; on all my elements that need to be on separate lines? What's the difference between using float: left or :right, instead of just :both? The css is at http://www.nasi.com/test/style.css, and is driving me nuts. I'm thinking I'm just having float and clear issues, so if anyone has any ideas, feel free to tell me. Right now the site looks great in IE 6, but terrible in Opera and Mozilla.

  2. #2
    SitePoint Addict
    Join Date
    Sep 2003
    Location
    Europe
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Read this article of css-guru Eric Meyer: http://www.complexspiral.com/publica...aining-floats/


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
  •