Che Vilnonis wrote:
> I recently used browsercam.com to crawl my sites.
> WOW, was I in for a rude awakening!
> 
> That got me thinking, how do YOU, as developers, write
> style sheets in order to cover your a$$ with the many
> variants of browsers/operating systems.

The most important step is to make sure that the specs you get 
from your boss require support only for reasonably new browsers 
(IE 5.5+, Gecko 1+, Opera 7+ and Safari) and standard compliance 
(for forward compatibility).


> Is there any <cfif><cfelse> logic that can be deployed?
> Can anyone offer any tips/tricks to make YOUR site look
> good no matter where it is being displayed?

Control whether really old browsers (NS4 etc.) see the 
stylesheets at all by using @import instead of <style src="...">. 
No need to do any sniffing there. For them I simply display a 
small text telling them their browser is outdated which would 
normally be hidden by the stylesheet. It doesn't look good, but 
it tells the visitor he is overdue with a browser upgrade.

For the rest I tend to avoid browser specific CSS alltogether 
(which isn't very hard if you can get your boss to agree with the 
mentioned browsers, except for certain issues with the box model 
of a well known browser).

And don't use fixed backgrounds if you care about IE (I don't :)

Jochem



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to