W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 1999

Re: h1, h2, etc. (+ pwWebspeak)

From: Chris Maden <crism@oreilly.com>
Date: Mon, 18 Jan 1999 11:38:28 -0500 (EST)
Message-Id: <199901181638.LAA22654@ruby.ora.com>
To: w3c-wai-ig@w3.org
[Charles F. Munat]
> You can also use CSS to achieve the indent. I'm not that worried
> about backwards compatibility because I can adjust the pages
> dynamically based on the browser. It's the blank lines that bother
> me. I can't seem to override them.

The theoretical way to control this in CSS is with the margin
properties:

h1,
h2,
h3,  { margin-bottom: 0pt }

h1+p,
h2+p,
h3+p { margin-top:    0pt;
       text-indent:   1em }

As to what actually *works*, see <URL:http://style.webreview.com/>.
According to their compatibility chart, text-indent works with NS 4,
IE 3, and IE 4, while margin-* works in NS 4, and as a length (not a
percentage) in IE 4.  In IE 3, margin-top works as a percentage on
Windows but not Macintosh, but margin-bottom doesn't work at all.

The best place for questions like this is
<URL:news:comp.infosystems.www.authoring.stylesheets>.

-Chris
-- 
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>
Received on Monday, 18 January 1999 11:39:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:13:43 GMT