Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
MadCap Software, Inc.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  Multiple .Head Colors
Previous Previous
 
Next Next
New Post 5/8/2008 11:50 AM
Resolved
User is offline Jeff Cochran
1063 posts
6th Ranked


Multiple .Head Colors 

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 4:41 PM
User is offline Timo Breumelhof
1543 posts
5th Ranked




Re: Multiple .Head Colors 

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;
}


Timo Breumelhof -- www.searchdotnetnuke.com -- Extended DNN (forum) search
 
New Post 5/9/2008 5:08 AM
User is offline Jeff Cochran
1063 posts
6th Ranked


Re: Multiple .Head Colors 

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 5:50 AM
User is offline keeperofstars
251 posts
9th Ranked


Re: Multiple .Head Colors 

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 7:39 AM
User is offline Jeff Cochran
1063 posts
6th Ranked


Re: Multiple .Head Colors 

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

Thanks,

Jeff

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  Multiple .Head Colors
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


ZLDNN.COM
We provide commercial DotNetNuke modules.
www.zldnn.com
DNNhost Scandinavia
SUPER fast QuadCore DELL servers, MSSQL servers, DotNetPanel, daily backup, Check out our customers websites
DNNhost.dk
Personify Design, Inc.
Seattle-based Personify Design has developed customized DotNetNuke websites for a wide range of customers to meet many different types of needs, including distributed authorship across thousands of pages to integrated Verisign e-commerce capabilities.
www.personifydesign.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP