On Thu, 04 Mar 2004 08:08:20 +0000, Toby A Inkster
<> wrote:
>Erik Harris wrote:
>
>> I thought this would work.. Can you look at
>> http://www.eharrishome.com/new-cimac/ (and the CIMAC.css file in the same
>> directory) and let me know if you see any problems?
>
>Not specific to Firefox either. Regular Mozilla doesn't like it either.
Same renderer, so I'm not surprised. Thanks for confirming, though.
>One point of interest: why do you set 'position:absolute;top:0%' in the
>CSS for BODY? Absolutely positioned elements have no intrinsic width, so
It was to get around another inconsistency between rendering in Firefox and
in IE. IE put the BODY at the top of the page if I set the margins and
padding to zero. Firefox (and presumably Mozilla), however, drops the body
down at least 1em from HTML. I didn't notice it before I defined a
background for HTML, because Firefox apparently uses the entire canvas for
the BODY background if (and only if) no HTML background is defined. As soon
as I defined a background for HTML, the background for my BODY got moved to
within the margins (which is why I had to add a DIV class="body" for the 10%
horizontal margin). This resulted in a distracting vertical offset between
the left and right background images.
>(in Opera 7.x at least) this causes the body to narrow as much as it can
>(which is limited by your logo), leaving a big gap between the tigers and
>the edge of the browser window. Screenshot is here:
>http://www.goddamn.co.uk/tobyink/scratch/tiger
Hmm... I'm confused about how this was rendered.. I specifically gave both
HTML and BODY 0em margins on all sides, and DIV.body 10% margins on both
sides. I don't understand where that gap is coming from. It does not appear
in Firefox or in IE.
>Have you tried instead: 'margin-top:0;padding-top:0'. It should have the
>same effect in this case.
It should, but it doesn't in Firefox (and presumably other Gecko-based
browsers), unless I did something else wrong that caused the top margin or
padding to be ~1em despite specifying zero.
I can think of at least one other kludgy ways around this (having a 90% width
DIV on the left and having a 90% DIV on the right, specifying the
backgrounds, and putting the whole page imbedded in both DIVs), but it seems
like such an inelegant solution.
--
Erik Harris n$wsr$ader@$harrishom$.com
AIM: KngFuJoe
http://www.eharrishome.com
Chinese-Indonesian MA Club
http://cimac.eharrishome.com
The above email address is obfuscated to try to prevent SPAM.
Replace each dollar sign with an "e" for the correct address.