Re: problem with flexible header (css) in IE 6 -
11-09-2005
, 11:03 AM
As far as I can tell, this behavior is correct. IE is honoring the
305px left margin, so when the width of the browser window is less than
all the elements with their padding and margin, it compensates by
moving the right div down.
I suspect the problem is in how IE handles the height and width of the
#header. No width is specified, so IE makes assumptions. If you
specify width as 100%, the result is the same. If you specify width at
1015px, IE honors that and does not move the right img down. Of course
now you top banner doesn't expand when the window is larger than 1015,
which I'm guessing is not what you want.
Apparently because IE has conflict with the height of #header and the
margins of #headRight, it honors margins first. Bad implementation of
CSS, which is no surprise.
What are you trying to accomplish? do you want to force the right image
to be at least 305px from the left img? or do you want the right image
to always be on the right side (if so use float:right instead of
text-align:right)? Let me know what you want to happen and maybe I can
come up with some way to make it work in IE. IE6 is much better with
CSS the previous versions, but still gives me trouble on a regular
basis. |