Re: Change CSS file in base template depending on browser

2011-01-18 Thread mongoose
Thanks guys. Just saw this in the admin contrib pages too:D win! On Jan 18, 7:36 pm, Dave Sayer wrote: > +1 for conditional comments. They're what all the cool kids are using these > days. > On 18 Jan 2011 15:00, "Michel Thadeu Sabchuk" wrote: > > > Hi, > > >> I have 2 css files. One specificall

Re: Change CSS file in base template depending on browser

2011-01-18 Thread Dave Sayer
+1 for conditional comments. They're what all the cool kids are using these days. On 18 Jan 2011 15:00, "Michel Thadeu Sabchuk" wrote: > Hi, > >> I have 2 css files. One specifically for IE because it's so horrible. >> I'd like to load either or css files depending on the browser. > > Why don't yo

Change CSS file in base template depending on browser

2011-01-18 Thread mongoose
Hi there, I have 2 css files. One specifically for IE because it's so horrible. I'd like to load either or css files depending on the browser. I know I have to use agent = request.META['HTTP_USER_AGENT'] I looked at this http://djangosnippets.org/snippets/77/ but it seems complex. All I

Re: Change CSS file in base template depending on browser

2011-01-18 Thread Michel Thadeu Sabchuk
Hi, > I have 2 css files. One specifically for IE because it's so horrible. > I'd like to load either or css files depending on the browser. Why don't you use conditional comments? http://www.quirksmode.org/css/condcom.html Best regards, -- Michel Sabchuk -- You received this message because