Re: Doctype and replace()
by Charles A Upsdell <cupsdell(at)upsdell.com>
|
Date: |
Sun, 14 Mar 2004 12:15:46 -0500 |
To: |
hwg-techniques(at)hwg.org |
Cc: |
"Mikael Aktor" <aktor789(at)hotmail.com> |
References: |
upsdell |
|
todo: View
Thread,
Original
|
|
> > But even when Opera is configured to spoof another browser, its userAgent
> > string always contain the substring 'Opera', so a competent programmer can
> > always identify Opera reliably.
>
>But is there any reason to treat Opera as different from Internet
>Explorer? What are the features where the two react differently?
The main difference I run into time after time is the CSS needed in
bulleted lists to control the size of the indent and the position of the
bullet. According to the CSS2 specs, different browsers can control this
differently: and they do.
For example, in my Browser News site, I use this CSS for IE6:
ul li { margin:0 0 0 2em; }
Whereas for Opera 7 I use:
ul li { margin:0 0 0 1.5em; }
And for Gecko browsers I use:
ul li { margin:0; }
These don't produce identical results in the Browser News site, but they do
produce comparable results.
The CSS2 specs do define 'markers' which could be used to control
positioning in a browser-independent manner, but no browser has ever
supported them, and indeed markers have been dropped in CSS2.1.
As to why I want to control the size of the indent and the position of the
bullet: I simply want bulleted lists that are more compact.
-
Chuck Upsdell, www.upsdell.com
Note: to ensure I receive your eMail, please avoid words commonly found in
spam; messages with such words may be blocked before they get to me.
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA