Dondo Land

Bryan Donovan's Weblog

All | General | Music | Rails

20041027 Wednesday October 27, 2004

 CSS support by browsers

Possibly the most annoying thing with developing a web page is having to deal with the varying (especially the poor) support for CSS by various browsers. The most annoying was at one time Netscape in their circa version 4.7 days. I've decided to ignore the possibily that someone out there is using Netscape 4--if they're still using a browser that old, they probably have a terrible monitor as well, in which case my page style is likely irrelevant; I'll just have Netscape 4 ignore the style sheet and render the raw HTML instead--but now the annoying browser is (and has been for a while actually) Internet Explorer. I've had web-developer friends of mine say rather recently that they hate having to deal with Mozilla/Firefox/Netscape and that their site looks fine in IE, implying that it's Mozilla/Firefox/Netscape's fault for not rendering their page as they intended. The truth, however, is that Mozilla (in general... of course there are problems with how Mozilla renders pages as well, but at least they are constantly improving) complies to W3C standards better than IE, and doesn't allow some of the sloppy HTML that IE allows.

The most annoying thing to me is that IE doesn't support hovering over non-link elements. In recent versions of Mozilla/Firefox, you can use CSS to create fast, light-weight menus that JavaScript was previously used to create (see Eric Meyer's how-to at css/edge). I'm not much for flair on a web page, but creating useful menus can be very beneficial and help clean up a page. Using JavaScript has its obvious downfalls, such as code maintenance and the ability for users to disable JavaScript. The sad truth is that most people (unwittingly I presume, for there is no other reason I can think of) use IE instead of the much better Mozilla and other Gecko derivations. This means we have to either not use some of the CSS tools available or create alternate style sheets for various browsers (such as what I did on my other blog, which has pure-CSS menus if you use a recent version of Mozilla or Firefox, and the entire layout is pure CSS (no tables)). If IE would just improve their support of CSS standards, it would make web development much easier for many people. Luckily most of my web development is for internal Sun Microsystems sites, so I don't have to worry about how IE renders the page.

However, I suppose I have a secret desire for IE to not improve because the longer they sit idle, the further ahead Mozilla will get.

/end rant

(2004-10-27 11:52:56.0/2004-10-27 11:51:58.0) Permalink Comments [4]
Trackback: http://blogs.sun.com/bdonovan/entry/css_support_by_browsers

Comments:

IE7 can give you most of the standards support you desire in the meantime.

Point your cruddy old IE6 at this for a taster:

Pure CSS Menus

Posted by Jonathan Buchanan on October 28, 2004 at 07:26 AM PDT #

Ah.. I didn't even realize IE 7 was out. That might make things easier.. assuming most IE users upgrade.

Posted by Bryan Donovan on October 28, 2004 at 08:16 AM PDT #

Ah, perhaps I should have actually explained what it is - the name tends to throw people off :). IE7 is a script for IE5+ on Windows which hacks in some standards support with minimal hassle:

IE7 loads and parses all style sheets into a form that Explorer can understand. You can then use most CSS2/CSS3 selectors without having to resort to CSS hacks.

The lightweight script is a single-line inclusion in your HTML/XML document. No alteration of your original markup is necessary. Neither do you have to alter your CSS.

<span>Source</span>

Posted by Jonathan Buchanan on October 28, 2004 at 09:41 AM PDT #

Oh yeah.. I actually have used that before, or something like it.. but the menus I have on my other blog still didn't work right. The script I used only enabled IE to use the top-level hover, not the nested list elements. But I'll have to give it a try again.. I imagine it's improved.

Posted by Bryan Donovan on October 28, 2004 at 02:59 PM PDT #

Post a Comment:

Comments are closed for this entry.

« December 2009
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today


XML







Today's Page Hits: 25