|
Posted by Andy Dingley on 10/18/03 12:00
On 16 Jan, 06:50, Pradeep <juneja.prad...@gmail.com> wrote:
> I have a following XML file, XSL file and CSS file.
>
> I am facing one problem , that ITEM rows are not displayed in proper
> color (RED) as mentioned in css file for .row1...... Same thing works
> well if the table is created in <xsl:template match="/"> but doesn't
> work for table created in <xsl:template match="ITEMLIST">.
So is this an XSLT problem or a CSS problem? Capture the HTML
generated and study that. It's very difficult to solve CSS selector
problems in XSLT, because you can't tell which process is failing. Did
you really generate the exact HTML you expected?
Either transform the XML / XSLT server-side and captuure the output,
or use a tool like the Firefox Web Developer extension that has an
option to show "Generated HTML" even for client-side generation.
> html body {
> line-height:1.55em;
> font-family:"Lucida Grande", verdana, lucida, helvetica, sans-serif;
>
> margin:0;
> padding:0;
> font-size:x-small;
> font-size:small;
>
> }
Also your CSS sucks.
* Don't set line-height. Very rarely needed, should almost always be
set with a dimensionless number, rather than an em unit.
* Don't mix verdana in with other font names. The odd sizing behaviour
will screw things up.
* Certainly don't default the font-size for body to "small"!
Navigation:
[Reply to this message]
|