[Logo]
Forums Register Login
CSS with XML
Can I use CSS to render my XML documents. How?
Yes!
First you link your XML document to external CSS stylesheet:
<?xml-stylesheet type=�text/css� href=�myStylesheet.css� ?>
And then, if you have an element with "myElement" name, for example, you can link it with CSS rules as
myElement
{ background-color: white;
border-color: blue;
font-size: 80%
...
}
I read that it's also possible to use internal CSS:
<?xml-stylesheet type=�text/css� href=�#myStylesheet� ?>
<document>
<CSS id=�myStylesheet�>
myElement { some rules here
}
</CSS>
<myElement>blah-blah-blah</myElement>
</document>
but it did not work for me...
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Nov 24, 2017 21:30:32.