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, ...How Do You Change the Font Color of a Container?How Do You Change the Font Color of a Container?
Previous
 
Next
New Post
1/17/2012 11:46 PM
 

I am trying to create a container with a font color that is different from other containers.

 I created the content pane in the container (mycontainer.aspx):

<div id="ContentPane" runat="server" class="my-special-text"></div>

Then added code to the Container CSS file (mycontainer.css):

.my-special-text
{
   font-family: Tahoma, Arial, Helvetica, Sans-Serif;
   font-size: 1em;
   text-decoration: none;
   letter-spacing: 1px;
   padding: 0;
   margin: 0;
   /* color: #FCFCFC !important; */
}

The font color being used by the browser keeps coming from the .Normal declaration of my skin.css file and not the mycontainer.css file.

 
New Post
1/18/2012 4:22 AM
 

You probably need to read up on the 'specificity' of CSS tags to understand what overrides what and when.

Try

.my-special-text .Normal

in your CSS.  It targets stuff with the class Normal *inside* stuff with the class my-special-text.


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
1/18/2012 5:02 AM
 

Yeah I mostly remove .Normal with jQuery  from all elements

but i would also add 

 m-special-text .Normal, my-special-text .Normal div, my-special-text .Normal p

just to be on the save side, you never now with the dreaded Normal class :)

 

 
New Post
1/18/2012 10:55 AM
 
Thanks guys!

I updated the css as follows and the font color works as I had hoped.

.my-special-text, m-special-text .Normal, my-special-text .Normal div, my-special-text .Normal p
{
font-family: Tahoma, Arial, Helvetica, Sans-Serif;
font-size: 1em;
text-decoration: none;
letter-spacing: 1px;
padding: 0;
margin: 0;
color: #FCFCFC !important;
}
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How Do You Change the Font Color of a Container?How Do You Change the Font Color of a Container?


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