Thomas Elser wrote:
Hi Els,
<div style="clear:both"></div>
that didn't work,
which I could have foreseen if I'd paid more attention, see
my post in reply to Karl's.
but manually adding the height to the
<div> made tit work THANK YOU!
Another question: I made the content of my page so that it would
fit in a browser windows at 1024x768 without showing scrollbars.
Now, with the solution you kindly gave me, scrollbars appear.
I tried to set the margin from auto to absolute values to reduce
the margin, but it is still there. Can I tell the surrounding <div>
to reduce the margins to zero if not needed?
With margin:auto, they _are_ reduced to zero when not needed.
The horizontal scrollbar may come from anything wider than
the inside of the window, but without the url, I can't even
start to guess what that might be.
On the other hand, let me start to guess anyway:
If it used to fit pixelperfect, it might have to do with the
1px border you have now around your page. In that case,
making your containing div 2px narrower should work.
If it's not that, it might have to do with having positioned
everything absolutely. By that, you take the elements out of
their normal flow. But this is not always recognized by the
scrollbars so to say. If you position an element let's say
top:-200px or left:-200px, and it is smaller than 200px high
or wide, it will be off your screen in most browsers,
without showing scrollbars to get there. This may have
prevented you from having scrollbars earlier on, maybe?
And about pixelperfect: I did that once, and it fitted
exactly in a Netscape or IE browser. Until I viewed it on
someone else's computer which had XP. 3 pixels off.
In Mac browsers, it's probably more pixels off, as there is
a sort of sidebar (from which I've seen through browsercam.com).
--
Els
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -