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
OpenOffice 3.2 Lands Amid Critical Changes
Red Hat, IBM Firmly in KVM Virtualization Camp
Red Hat Talks Up Open Source Cloud Plans

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


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

webref The latest from WebReference.com Browse >
Installing and Using Meeplace, the Business Review CMS · Sending an HTML and Plain Text E-newsletter with ASP.NET, Part 2 · Create Multilingual Web Sites with Windows Unicode Fonts
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Telehealth Takes Hold In Upstate New York · Ten Wi-Fi Security Threats to Monitor · SanDisk's SSD As Rapid As It Is Reliable

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

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