SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist escapedf's Avatar
    Join Date
    May 2002
    Location
    Cape Town
    Posts
    458
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Weird border problem

    Hi all --

    Just a quick one -
    Any ideas why the border
    (on the boxes left & right side - categories ect)
    moves up a little in IE?

    Its here: http://bluecrushdesign.co.za/dubai/

    Stylesheet here: http://bluecrushdesign.co.za/dubai/stylesheet.css

    Ive played with height ect.. not helping!
    Thanks!
    Dee
    "have the courage to follow your heart and intuition. They somehow already know what you truly want to become"

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,281
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    The problem is that you aren't using a full doctype and therefore ie6 is running in quirks mode and is therefore using the broken box model. See the faq on the broken box model for full details.

    You should use a full doctype (with uri) and run ie6 in standards mode and then it will use the same box model as other browsers. If you stay in quirks mode then you will have to supply hacks th ie6 and under to accomodate the fact that padding and borders are inside the stated width and not added to it.

    The full doctype for transitional is as follows.

    Code:
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    </head>
    
    <body>
    </body>
    </html>


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
  •