[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 16:57:11 -0500
verdana font
[Katie McNally]

> I tried, separately, both your class selector suggestion and your SPAN
> element suggestion.
>
> When I used the class selector code below the text in the table was all
the
> same small font size, but not the font that I wanted to use (it looks like
> Times New Roman, but may be another font).  This was the case in both NS
and
> IE browsers:
>
> <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>
>
When you don't specify the font, you should get the default font the browser
was set for (using Preferences), whatever that happens to be.

> When I used the class selector code below the text in the table was all
the
> same font size, but it was a larger font size than the results displayed
for
> the case above despite the fact that the font-size was supposed to be 11px
> for both cases.  The font was also not Verdana (again it looks like Times
> New Roman):
>
> <style>
> .mystyle {font-family:Verdana font-size:11px}
> td.mystyle {font-family:Verdana font-size:11px}
> tr td.mystyle {font-family:Verdana font-size:11px}
> table tr td.mystyle {font-family:Verdana font-size:11px}
> div table tr td.mystyle {font-family:Verdana font-size:11px}
> </style>
>
>

You don't have a semi-colon after the name of the font.  That's why you
didn't get what you expected.  I just tried the following using Netscape
4.73 in Windows 2000, and it gave me verdana (no way to be sure what the
point size is, but I presume it's right):

td.mystyle {font-family:Verdana; font-size:11px}

The font size displayed as seems to be a bit smaller than in IE, but that's
probably a browser-specific difference, not anything wrong with the style
specification.

Are you trying this on Windows or something else?

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.