Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

How Do I Change Containers Contentpane's Text Color

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
RegGFX
Posts:25



03/26/2008 12:52 PM  

I have an interesting situation where i have 3 containers One of which has a dark background.
I need the Container with the dark background not to use .Normal style so that the web admin usning the default html/textbox editor the FCKeditor doesn't always have to squint their eyes to find their white or yellow text in the FCKeditor when making changes.

So that is why i tried to make the container with the dark framed background display lighter text by default by assigning a style in its own containter.css

Even though you can assign a new .Normal class inside container.css, all this does is change ALL containers text to lighter color on the same page when i only need the one container with the dark background to be different by default.

Changing the title color is pretty easy... getting a single container with a dark background to use a different text color by default (not using .Normal) and at the same time not changing all container Contentpane text colors on the same page is some what of a challenge.

Any ideas?
As always, thanks in advance.

John Mitchell
Posts:3084



03/26/2008 1:22 PM  
It sounds like you want a more specific way to target an element with CSS. For that I use an ID selector.

If you are wanting to do it on a container that is used in several places though, then you need more than one ID.
For that I would create the container with a specific CSS class on the containing element, and then use a combination selector.
Something like:

< td class="DarkBackground" >

Then in CSS use:

.DarkBackground .Normal { color:white };
RegGFX
Posts:25



03/26/2008 9:02 PM  

THATS IT!!!... THATS EXACTLY IT!!!
I overlooked adding one more ID. Wow... sometimes something so simple is always made easier when you have a 2nd view point or approach. using < td class="DarkBackground" >

Then inside the container.css CSS useing

.DarkBackground .Normal { color:white };

WORKED PERFECTLY...
 
Thank You JOHN... Thank you VERY MUCH...

You are hands down the DNN Jedi. And you should be apart of the DNN Core team.

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

Forums >DotNetNuke Support >General-DNN-Help > How Do I Change Containers Contentpane's Text Color



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