W3C home > Mailing lists > Public > site-comments@w3.org > February 2004

Rendering problem with /2001/XKMS/WG.css and others

From: Eric Warnke <eric@snowmoon.com>
Date: Tue, 17 Feb 2004 11:40:12 -0500
Message-ID: <403243EC.7000401@snowmoon.com>
To: site-comments@w3c.org

I have run into a problem with some of the working group style sheets. 
I believe the problem is linked back to the use of the margin-left: -4% 
on H1, H2, H3, H4, H5.  This causes the headings to start off the 
visible portion of the page on mozilla 1.7 and IE 6.0 WHEN the width of 
the screen is very wide ( >1280 ).  Below is the original and one 
possible correction.

## original

BODY        { margin: 2em 1em 1em 50px; ... }

H1, H2, H3, H4, H5 {
               ...
               margin-left: -4%}

## end original

The correction replaces the body margin-right with 4% to offset the H 
margin-left.  You can also replace the header margin left with 2em to 
offset the body.

## correction

BODY        { margin: 2em 4% 1em 50px; ... }

H1, H2, H3, H4, H5 {
               ...
               margin-left: -4%}

## end correction

I know that those users that have screen that wise is small, but the use 
of negative margin-left ( by percent ) should be depreciated if not 
embedded in a block that has a corresponding positive indent.

Cheers,

-- 

Eric Warnke                   Computer Programmer / Systems Analyst
eric@snowmmon.com                                      518-727-1523
GPG Fingerprint: E7C5 615B 2115 C9D9 7E75  5088 930B 91E5 218B 6259





Received on Tuesday, 17 February 2004 12:32:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:07 UTC