Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Different CSS for IEDifferent CSS for IE
Previous
 
Next
New Post
1/23/2009 6:22 AM
 

Hi!

Does anyone know solution for using different css file for IE. In html page you only use this code:

<!--[if IE]><link href="/css/file.css" rel="stylesheet" type="text/css" media="screen" /><![endif]-->

When I test this code in DNN skin html and see a source code, that line is not processed.

 

Thanks,

Ivan

 

 
New Post
1/23/2009 1:50 PM
 

I have no problem using that just know that in order for this to work it needs to be in the head tags so you cant put it in a skin you need code to inject that in the head tag.

 

I use it on http://www.todnn.com

 

 

 
New Post
1/23/2009 3:50 PM
 

Hmm...  I've used this on my skins before without injecting it into the head.  I think the only thing that IE requires to be in the head - and the first declaration in the head - is the new compatibility mode switch for IE8.

Here's a (working) declaration from my skin:

<!--[if lte IE 7]>
<link rel="Stylesheet" type="text/css" href="<% skinpath %>IE.css"
<![endif]-->
 
New Post
1/26/2009 8:52 AM
 

I put that code in the head tags, but in page source I can't see that code.

Also if I put some comment in a page, I can't see that comment in page source.

So, how can I configure DNN to read comments? That is perhaps the problem...

 
New Post
1/26/2009 9:28 AM
 

I put that directly in my skin - I'm not trying to insert it into the head tag.  You can see one example here:  http://admtei.org/

IE will parse this correctly, regardless of version.  I've tested the skin for that site against IE6+ without issue.  The only thing that IE requires to be in the head is the X-UA-Compatibility tag (and that's only for IE8).

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Different CSS for IEDifferent CSS for IE


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out