Subject: Re: [xsl] Netscape changes font-size in table From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx> Date: Tue, 27 Nov 2001 16:57:11 -0500 |
[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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Netscape changes font-siz, Katie McNally | Thread | Re: [xsl] Netscape changes font-siz, David B. Bitton |
Re: [xsl] Getting rid of leading ze, Chuck White | Date | [xsl] current(), Jörg Heinicke |
Month |