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, ...Multiple .Head ColorsMultiple .Head Colors
Previous
 
Next
New Post
5/8/2008 2:50 PM
 

I am trying to style several containers in a single containers.css file, and need to change the .Head color for the module title in some containers.  Primarily I have a black container header and want white text.  I can set the .Head to white and change all the colors, but not singly.  I've tried surrounding the control with a class, as in:

<h1 class="midnight"><dnn:TITLE runat="server" id="dnnTITLE" /></h1>

But the control still sets the .Head style.  Setting a class="Head" with a H1 .head style works, again for all my module titles, not just the one I want the color changed.

Any suggestions to gracefully separate this?

Thanks,

Jeff

 
New Post
5/8/2008 7:41 PM
 

Jeff, I guess you already tried this?

Container 1:    <div class="red"><dnn:TITLE runat="server" id="dnnTITLE" /></div>

Container 2:   <div class="green"><dnn:TITLE runat="server" id="dnnTITLE" /></div>

container.css:

.red .Head{
color: #F00;
}

.green .Head{
color: #0F0;
}

 
New Post
5/9/2008 8:08 AM
 

Yeah I did.  It seems there's another encompassing class in the control so it's actually more like:

H1 .Midnight .SomeClass .Head

I thought about changing the control id for the one container and using that for a CSS class, but not sure what would work there either.  Haven't tried yet though.

I had thought that someone must have done this, but every DNN site I see has the same module title formatting acrooss the site.

Thanks,

Jeff

 
New Post
5/9/2008 8:50 AM
 

Don't overwrite the .Head class cause it doesn't seem to do well. HOWEVER 

The token / control [TITLE] has an attribute of CssClass which you can use to override the .Head style. Which does work much better.  So for each different color you need just do  [TITLE:2]  [TITLE:3]  etc.

 

 

 

 
New Post
5/9/2008 10:39 AM
 

Bingo!  I didn't even think to check to see if there was a CssClass attribute.

Thanks,

Jeff

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Multiple .Head ColorsMultiple .Head Colors


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