[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

css or xsl for increasing size of first letter in chap

Subject: css or xsl for increasing size of first letter in chapter?
From: Phillip Rhodes <spamsucks@xxxxxxxxxxxxxxx>
Date: Sun, 04 Aug 2002 00:26:47 -0400
first letter css
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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.