[pmwiki-users] question about headings

Shi Sherebrin pmwiki at share-a-brain.com
Tue Aug 21 13:33:39 CDT 2007


I'm trying to set up a style for my skin such that the first heading on 
a page won't have any margin above it, but other headings will.  I'd 
like to stay away from :first-child selectors since they don't appear to 
be supported in IE6.  I think I've found what I want in adjacent 
selectors (just make h1 etc. have no top margin, then define a top 
margin for p+h1 etc, or something like that) - however, when I examine 
the HTML for my page, I find even though my source starts with a 
heading, there are a few <p> tags that precede it.  Is this a bug, or 
something I don't sufficiently understand?

Is there perhaps a better way to do what I'm seeking to do?

thanks,
Shi.



More information about the pmwiki-users mailing list