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...Skins, Themes, ...Skins, Themes, ...Containers ClassContainers Class
Previous
 
Next
New Post
8/14/2015 5:10 PM
 

Hi, I'm using the latest DNN Platform and I just found out that containers come out of box with class=normal. What's the reason behind that CSS implementation? That makes really hard for us when we try to convert CSS themes to DNN skins. I can easily remove it from the core files but I want to follow best practices and not change the core files.

 
New Post
8/14/2015 8:17 PM
 
Hi Alex,

I agree that not changing the core files would be the best as this makes it challenging when upgrading your DNN versions as your changes can be overwritten.

I'm not really sure what the original reason for adding the normal class was, but I believe it is some legacy override approach from long ago. The class is added dynamically to each container on the server side. The best way to handle it would be to just add a new definition with the normal class. For example:

p, .normal p { font-size:13px;}

To be honest, it has been a challenge for skinning for quite some time.


Ralph Williams, Jr.
UX Designer / Front-End Web Developer
www.RalphWilliams.com
Ralph Williams Consulting
Twitter: twitter.com/ralphwilliams

Professional DNN7: Open Source .NET CMS Platform
 
New Post
8/15/2015 8:42 PM
 
Thank you for your response.
 
New Post
8/16/2015 8:26 AM
 
Alex Santos wrote:

Hi, I'm using the latest DNN Platform and I just found out that containers come out of box with class=normal. What's the reason behind that CSS implementation? That makes really hard for us when we try to convert CSS themes to DNN skins. I can easily remove it from the core files but I want to follow best practices and not change the core files.

 

Although there are modules (like the HTML module) that add Normal class (as Ralph stated for historic reasons), the class of the container is injected in the container.ascx and can thus be removed from the container.
Most containers add this class for downwards compatibility I guess.
If are creating a new container, you have to inject a contentpane control, by default this mostly looks like this:

 <div id="ContentPane" runat="server" class="Normal cContentpane"></div>

But, you can also use:

<div id="ContentPane" runat="server"></div>

And you willnot have the .Normal class

BTW, I guess the biggest problem is that default.css adds styling for the .Normal class.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Containers ClassContainers Class


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