Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Location
    Milford, CT USA
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS ... weird boxes in Firefox AND IE

    Hey, so I'm making a website and need some help with CSS plllllease!

    The site is located at http://www.zackrosen.com/zfiles/cbulletin/temp2.php

    In Firefox, it's ALMOST perfect -- except for the grey box. Why is that there and how do I get rid of it??

    And in IE, the white main content area is extended too far!

    Please help!!!

    Thanks so much,

    Zack

  • #2
    Senior Coder koyama's Avatar
    Join Date
    Dec 2006
    Location
    Copenhagen, Denmark
    Posts
    1,246
    Thanks
    1
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by zrosen88 View Post
    In Firefox, it's ALMOST perfect -- except for the grey box. Why is that there and how do I get rid of it??
    There is no such thing as “half a pixel”
    Code:
    #middleleft {
    	width:12.5px;
    	padding:0px;
    	float:left;
    }
    Firefox is rounding up the width to 13px which is why you have float dropping.
    Quote Originally Posted by zrosen88 View Post
    And in IE, the white main content area is extended too far!
    It is the white background from #bigkahunaframe that you are seeing on the sides. While developing, I suggest that you give each div a separate background color so you know the size and position of each div. These things are not obvious. For example floats do not expand their container which is why some of your divs have a smaller height than you may expect. Another problem is IE's float auto-containment bug. Read more about float containment: http://www.complexspiral.com/publica...aining-floats/

    As a side issue, are you aware that your page is rendered in quirks mode? This may give you major problems. For example auto margins won't be working in Internet Explorer.

    To avoid quirks mode I recommend that you use this document type:
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/REC-html40/strict.dtd">


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •