Learn More





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...Skins, Themes, ...Skins, Themes, ...CSS include orderCSS include order
New Post
3/30/2015 4:36 AM


I am trying to controll the include order of my CSS files, on my DNN 07.03.04 (45) site.

The main objective is to load my style.css last, to be able to overide css from bootstrap etc. I changed the name of skin.css to style.css to get it to load after my other css includes. But I can't controll the output order of my included CSS files. The orderd seemed to act differently on diffrent pages, though the includes where the same.

This article mentions priority, but does not explain how I apply priority to my stylesheets.

This is some of my includes:
<dnn:DnnCssInclude ID="fontello1CSS" runat="server" FilePath="fontello/css/animation.css" PathNameAlias="SkinPath" />
<dnn:DnnCssInclude ID="fontello2CSS" runat="server" FilePath="fontello/css/fontello.css" PathNameAlias="SkinPath" /> <dnn:DnnCssInclude ID="fontello3CSS" runat="server" FilePath="fontello/css/fontello-codes.css" PathNameAlias="SkinPath" />
<dnn:DnnCssInclude ID="fontello4CSS" runat="server" FilePath="fontello/css/fontello-embedded.css" PathNameAlias="SkinPath" />
<dnn:DnnCssInclude ID="fontello5CSS" runat="server" FilePath="fontello/css/fontello-ie7.css" PathNameAlias="SkinPath" />
<dnn:DnnCssInclude ID="fontello6CSS" runat="server" FilePath="fontello/css/fontello-ie7-codes.css" PathNameAlias="SkinPath" />
<dnn:DnnCssInclude ID="normalizeCSS" runat="server" FilePath="normalize/normalize.css" PathNameAlias="SkinPath" />
<dnn:DnnCssInclude ID="styleCSS" runat="server" FilePath="style.css" PathNameAlias="SkinPath" />

And this is the output order:
<link href="/Portals/3/Skins/trewportal-2015/normalize/normalize.css?cdv=23" media="all" type="text/css" rel="stylesheet"/>
<link href="/Portals/3/Skins/trewportal-2015/style.css?cdv=23" media="all" type="text/css" rel="stylesheet"/>
<link href="/Portals/3/Skins/trewportal-2015/fontello/css/animation.css?cdv=23" media="all" type="text/css" rel="stylesheet"/>
<link href="/Portals/3/Skins/trewportal-2015/fontello/css/fontello-ie7-codes.css?cdv=23" media="all" type="text/css" rel="stylesheet"/>
<link href="/Portals/3/Skins/trewportal-2015/fontello/css/fontello-codes.css?cdv=23" media="all" type="text/css" rel="stylesheet"/>
<link href="/Portals/3/Skins/trewportal-2015/fontello/css/fontello.css?cdv=23" media="all" type="text/css" rel="stylesheet"/>
<link href="/Portals/3/Skins/trewportal-2015/fontello/css/fontello-ie7.css?cdv=23" media="all" type="text/css" rel="stylesheet"/>
<link href="/Portals/3/Skins/trewportal-2015/fontello/css/fontello-embedded.css?cdv=23" media="all" type="text/css" rel="stylesheet"/>


New Post
3/30/2015 7:36 AM

Try the CSS priorities described on this page:

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...CSS include orderCSS include order

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.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?