Results 1 to 2 of 2

Thread: Quandaries between Firefox and IE

  1. #1
    Join Date
    May 2008
    Posts
    17
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Default Quandaries between Firefox and IE

    Hi again,

    I am designing a page for an online education website. I have checked it with W3, and both the page and stylesheet are W3C-Compliant XHTML and CSS. But for some reason, the right sidebar, although working in IE6/7 (although it might be a fluke, ), is NOT working in Firefox. It always seems to jump down below the main content div. I have attached the edited-for-content code. If anyone can help, it'd be greatly appreciated.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    It's a fluke when anything works in IE Validation doesn't guarantee anything. It's synonmous to using Word's spell and grammar checks. Sure, it catches some common mistakes but there could certainly be other mistakes in the peice. Unfortuatnely, MS Office doesn't come with logic and rhetoric checks, yet.

    Anyway, to your problem. You're using clear imporperly. You can read more about it's proper usage here.

    Code:
    div.left {
    	width: 18%;
    	background-color: #CCCCFF;
    	border: 1px solid black;
    	float: left;
    	clear: right;
    }
    Code:
    div.right {
    	width: 20%;
    	border: 1px solid black;
    	background-color: #CCCCFF;
    	float: right;
    	clear: left;
    }
    The highlighted should be removed.

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
  •