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
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

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

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint

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

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