Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
IE6 layout bug - any suggestions?
Old 11-25-2008, 10:48 AM IE6 layout bug - any suggestions?
Junior Talker

Posts: 2
Trades: 0
Hi there

I've been building a new page on our site that has bascially the same layout as all the others. It works fine in IE7 and FF, but in IE6 the layout goes a bit wrong.

There should be a green box that lines up with the top of the content and sits to the righthand side, however, in IE6 the green box moves to the bottom of the page and sits on the left hand side.

I thought it may be something to do with the table, as this is not on any other page, so I tried removing it, but it made no difference.

Anyone know if there's a quick fix without affecting all the other pages with the same layout?

problem page: caravanguard.co.uk/test/tracking.php

Thank you in advance
caravan5 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-25-2008, 11:33 AM Re: IE6 layout bug - any suggestions?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You'll need conditional comments and a separate css file to fix this in IE6.

1 - you're triggering the doubled-float margin bug in IE6 with the float:left and the 5px left margin on #nav. IE will DOUBLE that margin to 10px, which means there's not enough space for the #contentright to sit where you want it so IE6 DROPS the box to where there IS room.

In a separate css file for IE6, add display:inline to #nav and it will correct the problem. Do the same for any other boxes you have floated and added a margin that goes it the same direction as the float - right with right margin and left with left margin.

You also need to validate your code, you've got an extra </div> on that page that may be contributing to the problems.

When you float a div, you MUST define a width - and you have no width defined on #contentright.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-26-2008, 10:08 PM Re: IE6 layout bug - any suggestions?
fiend5's Avatar
Novice Talker

Posts: 6
Name: robert
Trades: 0
I also face the same problem. But already solved out with your suggestion. Thank you Lady . To make the web page layout display best on any browsers, which one we should use?
But, I still got another problem, why IE6 can't display my background image which is repeat-x on my header? On FF and others browsers work fine.
__________________


Please login or register to view this content. Registration is FREE

fiend5 is offline
Reply With Quote
View Public Profile
 
Old 11-28-2008, 10:41 AM Re: IE6 layout bug - any suggestions?
Junior Talker

Posts: 2
Trades: 0
I think my thread has been somewhat hijacked! Abu - your site appears not to exist

My problem was fixed by moving the code about, so the green box appears above the table in the code. This fixed the problem in IE6 without changing the CSS. Thanks for your help LadynRed - I used your advice to fix the text alignment issue in the #nav section at the same time.
caravan5 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to IE6 layout bug - any suggestions?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24972 seconds with 12 queries