[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Netscape changes font-size in table

Subject: Re: Netscape changes font-size in table
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Tue, 27 Nov 2001 11:21:46 -0500
css td.mystyle
[McKeever, Marty]


> the combination of netscape, table cells, and CSS has always been a pain
to
> deal with.  here are my two suggestions, certainly one of them will work
for
> you.
>
> First, when using a class selector such as:
> <td class="mystyle">foo</td>
> you will want to be very (very!) redundant with the definition:
> <style>
> .mystyle {font-size:11px}
> TD.mystyle {font-size:11px}
> TR TD.mystyle {font-size:11px}
> TABLE TR TD.mystyle {font-size:11px}
> DIV TABLE TR TD.mystyle {font-size:11px}
> </style>
> this has always worked for me in NS4, once i found the right combinations.
>
> Second, since netscape has so much trouble with TD's, you could do almost
> exactly what you originally planned by using the SPAN element:
> <TD><span style="font-size:11px">foo</span></TD>
> changing your original template to output this format would be very simple
> -- and should work fine for what you need to do.  Just dont try to use
> background-color here.
>

This looks like very good advice.  Also, I have read (but not verified) that
Netscape version 4 variants do not like spaces between the parts of a style
declaration - they sometimes cause odd behavior or cause parts of the style
specification to be ignored.  I think this may apply to space before or
after colons and semi-colons.  I try to remember to eliminate all such
whitespace just in case.

Netscape 4 variants also don't necessarily apply a body style (i.e.,
".mystyle") to a table cell ("td.mystyle").  This quirk ("feature"?) is
reflected in Marty's example, above.

Cheers,

Tom P


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.