Hi Che,

I sometimes use <cfbrowser> by Chris Sgaraglino (www.ilgm.com) to
determine the visitor's browser, version and OS.

Create separate style sheets for each specific configuration (AOL.css,
MSIE.css, NS.css, etc.) and then call those with the ColdFusion variable
returned by <cfbrowser>.

For example:  

   <!--- *************************************************************
--->
   <!--- LOAD BROWSER-SPECIFIC STYLE SHEET                            
--->
   <!--- *************************************************************
--->

   <cfbrowser>

   <link rel="stylesheet" href="/styles/#BrowserType#.css">

   <cfinclude template="Browsers/#BrowserType#.cfm">
                        
This second include does some additional browser-specific "conditioning"
beyond style sheet discrepencies.  It simply sets some variables for
better matching form field lengths between browsers, etc.

I hope this is helpful.

Dave

--

David M. Delbridge
Circa 3000
ColdFusion Hosting
http://www.circa3k.com


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.
> 
> 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

Get the mailserver that powers this list at 
http://www.coolfusion.com

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

Reply via email to