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, ...Set "normal" class within a known classSet "normal" class within a known class
Previous
 
Next
New Post
5/11/2007 4:20 PM
 

Caution - CSS rockie here....

I have a Left Pane that has a dark background and a content pane with a white background.  I need to set the Normal Class to a White (or light) color in a container I will use for the Left Pane only.  However,  I seem to have a problem getting the Link module to work using the dark background container as it sets the class of the link to Normal.  So how can I do something like "set the normal class color when within a DIV of class Darkbackground"   I also need to set the <a> tags attributes for visited, hover etc.

Any pointers or suggestions would be helpful.   Thanks in advance.  /Paul

 
New Post
5/11/2007 4:39 PM
 

.Darkbackground .Normal
{
color: White;
}

should be enough to change the first issue.  The a tags should be accessible through

.Darkbackground a:hover
{

...
}

-Hope it helps


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
5/11/2007 4:52 PM
 

Paul, here's how I do it:
Let's assume we are making the dark-background container for the left pane, it could be named "LeftContainer.ascx".
Set the whole container's class first, using something like <div class="darkBackground"> or similar if you are using table layout method.
And in the CSS file, declare your container style:
.darkBackground{
margin: 0px;
padding: 0px;
background: #000000 none;
}
Then style the major DNN text classes to inherit:
.darkBackground .Head, .darkBackground .Normal, .darkBackground .NormalBold {
color: #ffffff;
}
And the container will be black with white text for the title and normal text. You'll need to include a few other DNN text class, though in order to get everything: there's .SubHead, .SubSubHead and more.

Hope this gets you going in the right direction, if you need more just ask.

 
New Post
5/13/2007 8:28 AM
 

Sam,

Many thanks ,,, I will give it a try as soon as I can.    I believe I see my problem.  I had  ".Darkbackground.normal"    No space -- should that matter?

Paul.

 
New Post
5/13/2007 7:32 PM
 

Yes, it will.  .Darkbackground .normal {} selects the normal class when used within the Darkbackground class, but Darkbackground.normal{} is a whole new class in itself.

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Set "normal" class within a known classSet "normal" class within a known 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