Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » Change CSS file in base template depending on browser [RSS Feed]

#1 Jan. 18, 2011 15:00:23

Michel T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Change CSS file in base template depending on browser


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.htmlBest regards,

--
Michel Sabchuk

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Jan. 18, 2011 17:36:42

Dave S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Change CSS file in base template depending on browser


+1 for conditional comments. They're what all the cool kids are using these
days.
On 18 Jan 2011 15:00, "Michel Thadeu Sabchuk" <miche...@gmail.com> 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 you use conditional comments?
>
>http://www.quirksmode.org/css/condcom.html>
> Best regards,
>
> --
> Michel Sabchuk
>
> --
> You received this message because you are subscribed to the Google Groups
"Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
.
> For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.
>

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Jan. 18, 2011 17:54:21

m.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Change CSS file in base template depending on browser


Thanks guys. Just saw this in the admin contrib pages too:D win!

On Jan 18, 7:36 pm, Dave Sayer <d...@bathdesign.co.uk> 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" <miche...@gmail.com> 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 you use conditional comments?
>
> >http://www.quirksmode.org/css/condcom.html>
> > Best regards,
>
> > --
> > Michel Sabchuk
>
> > --
> > You received this message because you are subscribed to the Google Groups
>
> "Django users" group.> To post to this group, send email to
> django-users@googlegroups.com.
> > To unsubscribe from this group, send email to
>
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .> For more options, visit this group at
>
>http://groups.google.com/group/django-users?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » Change CSS file in base template depending on browser [RSS Feed]

Board footer

Moderator control

Enjoy the 17th of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support