This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

css or xsl for increasing size of first letter in chapter?


Hi everyone.
I am trying to increase the size of the very first letter for each chapter in an xhtml document. I have used the css pseudo class "first-letter" to do it, but it selects all the p elements in a chapter, not just the first.

p:first-letter {
font-size: 16pt;
}

I could use xsl to make the first child p of the chapter a special class of p like <p class="firstsentence">

Sort of like
p.firstsentence:first-letter

But not sure if this is the way to go...., any handy XSL tricks for this?
Thanks!

<html>
<body>
<chapter>
<p>This is chapter 1</p>
<p>another sentence</p>
</chapter>
<chapter>
<p>This is chapter 2</p>
</chapter>
</body>
</html>


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]