spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / dhtml / diner / ssheets
DHTML Diner Logo

This is a DHTML cross-browser technique. The examples discussed will only work in Navigator 4 and Explorer 4, all platforms.

Developer News
Eclipse Helios Update Brings New PHP Tools
Internet Explorer 9 Ups Standards Support
JBoss Portal 5 Release Easier to Use

Browser-specific Style Sheets

Finally, style sheets have come into general use on the Web.

Authors are finding, however, that the two browsers support styles in different ways. Until the standards are finally adhered to, authors may be forced to include browser-specific style sheets in their pages.

We have seen many attempts to point browsers to specific styles, but they have all lacked elegance. Most use a variation of the document.write("<STYLE... technique. We, too, have been guilty of this brute-force approach in the past.

In this short article, we will discuss three different, but elegant, approaches to solving the browser-specific style problem. They all avoid using document.write() and, therefore, the Navigator document.write()/window resize-related bug.

Prerequisite

You must have a rudimentary knowledge of CSS style sheet use. If you don't, one can be quickly obtained by reading Cascading Style Sheets or the many tutorials at HTML with Style, here at WebReference

Our first example uses only HTML!



Produced by Peter Belesis and

webref The latest from WebReference.com Browse >
Flashmaps' DynamicLocator: Interactive Maps for Small Areas · Flashmaps' AreaSelector: Interactive Maps for Wide Areas · The DB Mapper: Interactive Street-level Maps of U.S. and Canada
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MS Access and MySQL · Cisco AutoQoS: VoIP QoS for Mere Mortals · While VoIP Adoption Explodes in Enterprise, Carrier Spending Lags

All Rights Reserved. Legal Notices.
Created: Feb 09, 1999
Revised: Feb 09, 1999

URL: http://www.webreference.com/dhtml/diner/ssheets/