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 Community Exchange, where community members ask and answer questions about DNN. To get started, just start typing your question below and either select one of the suggested questions or ask a new question of your own.

Default.css and Skin.css

Return to previous page

  • 12/17/2013
  • 4209 Views

Question:

Patrick May long time ago
Hi

The default.css file contains the text attributes for modules:

/* Set text size in modules*/
.Normal,
.NormalDisabled,
.NormalDeleted {
color: #444;
font-size: 12px;
font-weight: normal;
line-height: 18px;
}

/* disabled text styles */
.NormalDisabled,
.NormalDeleted {
color: #999;
}

When I want to override these attributes by my own skin, I need to copy those classes into my skin.css, by modifying them.

But if I have multiple default HTML modules on one page and the first module must have a red font color, the second one a green font, and so forth, this approach won’t work.

Even when the unique font color of the div (containing the HTML module) is defined later in skin.css than the above classes, they override my div class definition.

What is the usual way to apply different attributes to multiple HTML modules on one page?

Be aware, that the above ‘normal’ class is always applied, according to the HTML code produced by DNN:



Should I simply empty the definitions in default.css like this?

/* Set text size in modules*/
.Normal,
.NormalDisabled,
.NormalDeleted {
}

/* disabled text styles */
.NormalDisabled,
.NormalDeleted {
}

Patrick

Default.css and Skin.css

Patrick May
Patrick May long time ago
Add an Answer

Answers

Sign In to Participate
Or register to become a member