If you can, avoid complex or detailed CSS stuff, because the simpler, older stuff is better supported across the board. When that's not possible, make a couple breakpoints in browser market and develop a single stylesheet for each block of browsers. Depending on your site, an IE block and an 'everything else' block might be enough. Or IE4, IE5, IE6, NS4, NS6+, and 'other' might be more appropriate. Then use browser sniffing to determine which style sheet to link to:
<cfif cgi.http_user_agent CONTAINS "MSIE"> <link href="style/ie.css" rel="stylesheet" type="text/css" /> <cfelse> <link href="style/other.css" rel="stylesheet" type="text/css" /> </cfif> All that work is pretty simple, as long as you keep everything in your stylesheets, and don't do anything at the page level, or inline, which you usually shouldn't do anyway. And the vast majority of it can be done by the designer (using multiple browsers/machines), not the developer, assuming you aren't doing both jobs ;). HTH, barneyb --- Barney Boisvert, Senior Development Engineer AudienceCentral [EMAIL PROTECTED] voice : 360.756.8080 x12 fax : 360.647.5351 www.audiencecentral.com > -----Original Message----- > From: Che Vilnonis [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 23, 2003 10:05 AM > To: CF-Talk > Subject: OT: Style sheets & Browsers... > > > 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. > > 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? > > TIA...Ch� > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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

