- From: Danny Ayers <danny666@virgilio.it>
- Date: Fri, 9 Nov 2001 12:15:07 +0100
- To: <AndrewWatt2001@aol.com>, <www-svg@w3.org>
- Message-ID: <EBEPLGMHCDOJJJPCFHEFAENHEEAA.danny666@virgilio.it>
Thanks, just what I was after.I don't feel as stupid as I thought I would - using CDATA doesn't seem anything like as obvious as e.g. <defs>. I must remember to check SVG 1.1 to see if anything's changed. BTW, Pro XML and Pro XSL (Wrox Press) are two of the most read books on my shelf - highly recommended ;-) Cheers, Danny. --- Danny Ayers http://www.isacat.net Alternate email (2001) : danny666@virgilio.it danny_ayers@yahoo.co.uk -----Original Message----- From: www-svg-request@w3.org [mailto:www-svg-request@w3.org]On Behalf Of AndrewWatt2001@aol.com Sent: 09 November 2001 09:56 To: www-svg@w3.org Subject: Re: styling text In a message dated 08.11.01 23:25:15 GMT Standard Time, danny666@virgilio.it writes: Hi, What I'm trying to do is bound to be dead straightforward, but I can't for the life of me see it in the spec. All I want to do is define e.g. h1 as having style="font-size:100", h2 with style="font-size:200" then call on these styles later (in the same doc), like css. Something like : <defs> h1 style="font-size:200" h2 style="font-size:20" </defs> ... <blah> <text style="url(#h1)">Big Headline</text> <text style="url(#h2)">Smaller Headline</text> </blah> defs? It doesn't look like it... directly as css tags? maybe...class...hmm... It's late at night & I'm off to bed now, but I'd appreciate someone making me feel stupid in the morning. Cheers, Danny. I hope this cheers Danny. :) <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <svg width="" height=""> <style type="text/css"> <![CDATA[ .MyBigText{font-size:40} .MyLittleText{font-size:12} ]]> </style> <text x="20" y="60" class="MyBigText">I AM BIG!</text> <text x="20" y="100" class="MyLittleText">And I am only tiny! <sniff/> :) </text> </svg> Andrew Watt
Received on Friday, 9 November 2001 06:18:33 UTC