Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Browsers text display differs

Status
Not open for further replies.

smiffy47

Programmer
Joined
Apr 6, 2004
Messages
95
Location
GB
I am using the following code in a table in order to open a new browser window for site visitors to print off the content of a small ssi.

<td align="center" class="cellcolour"> <a href="javascript:;"><font size="2" onclick="MM_openBrWindow('../../ssi/o-z/outofhours.htm','','menubar=yes,scrollbars=yes,resizable=yes,width=500,height=200')">
Print this<br>
info</font></a></td>

As you can see I ask that the text "Print this info" to appear in font size "2" - and this it does in Netscape7 and Firefox, but fails to do in IE6, where the text reverts to 16px (as defined for link-text by a css elsewhere) How can I get IE to act on the <font size="2"> instruction as the other browsers do?
Thanks for your help
Steve

Life...It's difficult not to take it personally.
 
smiffy47, the font tag has been deprecated.

Since the tag is deprecated, you cannot expect consistent behavior across multiple platforms. Using the CSS style font-size you can tailor the text to work the same across multiple systems (and expect consistent results). Since your font tag is directly embedded inside your anchor, you should be able to apply a font-size style directly to the anchor to get it to work.

-kaht

Looking for a puppy?

[small]Silky Terriers are small, relatively odorless dogs that shed no fur and make great indoor pets.[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top