[pmwiki-users] Proposed Default Stylesheet (pmwiki.css)

Hans design at softflow.co.uk
Sat Feb 18 07:03:55 CST 2006


Saturday, February 18, 2006, 1:38:19 AM, Patrick wrote:
> However, I still want to hear how one would handle the spacing of

>     <h1>Heading</h1>
>     <p>some paragraph</p>
>     <p>another paragraph</p>

> before I commit to eating newlines around headings. 

I would give all headers (h1 to h6) margin-bottom:0; margin-top:0;
and <p> margin-top:0.5em;

This will reduce spacing between header and paragraph.

I would also give each header  a font size, since the smaller headers
are often coming out smaller than the text.


h1 { font-size:2.0em; margin-bottom:0; margin-top:1em;}
h2 { font-size:1.8em; margin-bottom:0; margin-top:1em; }
h3 { font-size:1.5em; margin-bottom:0; margin-top:1em;}
h4 { font-size:1.3em; margin-bottom:0; margin-top:1em;}
h5 { font-size:1.1em; margin-bottom:0; margin-top:1em; }
h6 { font-size:1.0em; margin-bottom:0; margin-top:1em;}
p { margin-top:0.5em; }

See example here:
http://softflow.co.uk/test-design/header-test.html


Best, 
~Hans                           





More information about the pmwiki-users mailing list