SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: 6px short in ie6

  1. #1
    SitePoint Addict mari's Avatar
    Join Date
    Nov 2007
    Location
    London, UK
    Posts
    218
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question 6px short in ie6

    Hi guys,

    i have a left columns which is the same height as a column it is floating against

    i have set a fixed height and it is the same in ff, safari, and chrome and ie7, but ie6 is showing it shorter by 6pixels

    here is my css

    Code CSS:
    #left-generic {
    	width: 636px;
    	height: 1193px;
    	float: left;
    	font-size: 0.8em;
    	border: #ccc 1px solid;
    	margin-top: 10px;
    	overflow: auto;
    }

    here is my html

    Code HTML4Strict:
    <div id="left-generic">
    </div>

    the div doesnt contain any conent at the moment

  2. #2
    SitePoint Wizard
    Join Date
    Jul 2003
    Location
    Kent
    Posts
    1,908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have you set a doctype?
    Have you done a margin and padding reset as the first thing in your css file?

    You have given so little code to work from and no site url, so we can't really help you until you show us the site.

  3. #3
    Non-Member bronze trophy
    Join Date
    Nov 2009
    Location
    Keene, NH
    Posts
    3,760
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)
    Fixing the height of any container is usually a BAD BAD BAD!!! design choice, since if you put in dynamic fonts (like the WCAG SAYS TO) your layout is probably going to break on your larger content.

    You should NOT be trying to make them the same height. Wrap them in a DIV, and apply a faux-column image background to make them LOOK the same height.

    Also to expand on what Dr. John said, without seeing the rest of the code and just having a couple meaningless snippets your basically asking us to instruct you on performing brain surgury over a time-phone to 1876.

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
  •