DocBook: css has no effect
Posted: Wed Mar 17, 2010 8:45 pm
Hi,
I have written a user guide in DocBook and output it as PDF and HTML using the Oxygen transformation scenarios. I've tweaked the PDF xsl files a bit and they have the desired effect.
Now I'm trying to improve the appearance of the HTML output. I prepared a simple css and specify the filename in the parameter html.stylesheet in the HTML transformation scenario. For example, I just try to change the color of the font. I've tried putting various stuff in the css, but it is not applied. Here's the latest version:
div.chapter div.titlepage h2 {
font-size: 180%;
font-family: Helvetica;
font-weight: Bold;
color: green
}
Can you please give me a simple code to put in the stylesheet to make the titles green--it is Saint Patrick's day, after all
Thanks,
Patricia
I have written a user guide in DocBook and output it as PDF and HTML using the Oxygen transformation scenarios. I've tweaked the PDF xsl files a bit and they have the desired effect.
Now I'm trying to improve the appearance of the HTML output. I prepared a simple css and specify the filename in the parameter html.stylesheet in the HTML transformation scenario. For example, I just try to change the color of the font. I've tried putting various stuff in the css, but it is not applied. Here's the latest version:
div.chapter div.titlepage h2 {
font-size: 180%;
font-family: Helvetica;
font-weight: Bold;
color: green
}
Can you please give me a simple code to put in the stylesheet to make the titles green--it is Saint Patrick's day, after all
Thanks,
Patricia