Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

.head class

Rate this topic:

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

AuthorMessages
jayvilla
Posts:35



05/21/2007 7:07 PM  

I need a little help. I have set up the .head class in my container.css to have a white font so I can see the text in the blue header. When I change this, the Main titles in my admin area (content area) also turn white causing them to disappear with the white background of the content area. How can I change it so they are different colors?

John Mitchell
Posts:3249



05/21/2007 11:08 PM  
Yes, since the .Head class in the container is getting applied after the default it is overriding the built-in style for the control panel.

You need a compound css selector, so you can target more specifically.
Maybe with an ID selector, something like:

#MyContainer .Head {
color:white;
}

You could also correct the Control Panel with:
#ControlPanel .Head {
color:black;
}
John Mitchell
Posts:3249



05/21/2007 11:12 PM  

Oh, you said Content area:

#ContentPane .Head {

   color:black;

}

If your content pane has an Id on a runat=server tag that won't work though since the server builds the id into something else, so you may need to do something like this:

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

jayvilla
Posts:35



05/23/2007 11:59 AM  
Where do I type this code? On the container.css file or the portal.css file? Also, do I have to change anything in the container's html file? The reason I ask is because I added the line to my container's css file and it did not change anything.

My container's css:

.head {
font-family: Arial, Tahoma, Helvetica;
font-size: 14pt;
font-weight: Bold;
color: white;}

#ContentPane .Head {color: black; }
jayvilla
Posts:35



05/23/2007 12:06 PM  
Nevermind.... I got it to work. I didn't ID the cell that the contained the Content Pane. Thanks a million!
Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.




ActiveForums 3.7
Visit our Store for great DotNetNuke Modules and Skins
DNNMasters Sitemap/Google Sitemap 3.0

Item codeSM3-01
Price$29.00
Product Information 
DotNetNuke CSS NavMenu 3.3 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
Snapsis PageBlaster 3.3.2 for DotNetNuke - Professional Edition

AuthorJohn Mitchell
Base Price$79.00
Product Information 
XDAkuna (Web 2.0 CSS XHTML Skin)

Item codeXDAkuna
AuthorNina Meiers
Price$49.00
Product Information