Modify your exisitng CSS to use Computed Text where ever the differences occur. (Your CSS will need to be a page or form and not an Image Resource in order to do this.)
Since the prime differences occur in frame spacing and font sizes, I've provided examples for both.
FONT SIZE DIFFERENCES:
Sample CSS:
a { cursor:auto; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight:bold; color: #006}
In this scenario, create computed text to replace the 12px for the font-size. The formula would be:
@If(@BrowserInfo("BrowserType")="Netscape" &
@BrowserInfo("Platform")!="MacOS";"13px";"12px")
*Notice Mac NS renders the same as IE!
*Use pixels instead of point size to make your CSS campatible across platforms. If you wanted to use point sizes, similar code would be:
@If(@BrowserInfo("BrowserType")="Netscape" &
@BrowserInfo("Platform")!="MacOS";"9pt";"8pt")
FRAME ROW AND COLUMN DIFFRENCES:
Since Netscape rounds to the nearest 5 pixels, your frameset may not appear exactly as you like. For instance if the graphic you designed is 80 pixels high, you would like your frame to be as well.
Here's
Requires Free Membership to View
Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.
Partial Frame HTML:
<FRAMESET FRAMEBORDER=0 BORDER=0 ROWS="76,*">
Replace the 76 with Computed Text:
@If(@BrowserInfo("BrowserType")="Netscape";"80";"76")
*Unfortunately, this means you would not be able to use Domino frames, and you would have to copy the code it usually renders into a page where you can adjust the code as needed.
This was first published in January 2002