- From: <AndrewWatt2001@aol.com>
- Date: Fri, 9 Nov 2001 03:55:47 EST
- To: www-svg@w3.org
- Message-ID: <80.12cc7a11.291cf413@aol.com>
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 03:56:26 UTC