[pmwiki-users] question about headings
carlos.ab at gmail.com
carlos.ab at gmail.com
Tue Aug 21 14:58:48 CDT 2007
Em Terça 21 Agosto 2007 15:33, Shi Sherebrin escreveu:
> 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.
I don't know if I got it right, but you can do this:
------8X---------
%define=meclass padding-top=0 margin-top=0%
!%apply=block class=meclass %Me-Fancy-Title
------8X---------
:-)
I hope it helps.
CarlosAB
More information about the pmwiki-users
mailing list