MyBB Community Forums

Full Version: Css help needed.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is not related to Mybb but I need some help none the less. I have created a cool homepage with 2 different styles. I want to show one style only to all my users that use Internet Explorer. How can I do that please? Or it is not possible?
<!--[if IE]>
*link to ie-specific stylesheet*
<![endif]-->

Put that in the header. Typically what I do is make a separate stylesheet titled style-ie.css or something, which contains specific properties, overrided with !important.

For example, the main stylsheet might have:

#container {
  width: 80%;
}

and to be sure the IE property overrides this, I would put (in the ie stylesheet):

#container {
  width: 79% !important;
}

Smile
I've never seen this...
!important;
...before.

Thanks Smile