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, ...Container DoesnContainer Doesn't pull in Content Pane Text Color CSS
Previous
 
Next
New Post
3/25/2008 6:51 PM
 

I have a container where i can successfully call its own style sheet and use its own text color for the dnnTitle but i have another problem.
How does one call a specific style class to be used specifically for the Content Pane text of a container?
In other words i have a container with a dark background in the content area of the container. I want to force this area of this specific container to use only yellow or white text.

So i did the following in the container's table cell <td valign="top" bgcolor="#4a1c1e" id="ContentPane" runat="server" class="promocontenttxt"></td> which does not work force the content panes text data to change color but rather pulls in the default text style of normal located the the skin.css

I have a link to the container.css which i know is working because the container Title pulls in the correct title with the following
<dnn:TITLE runat="server" id="dnnTITLE" cssclass="promocontenttxt" /> AND THIS WORKS.

How do i get my content area of the same container to pull in a specific class style or different text color? 
This way the user doesn't have to remember to go back and physically change their font colors everytime they make a change to container with text that needs to be lighter.

Perhaps i'm over looking something?

 
New Post
3/25/2008 11:39 PM
 

All regular text in DNN renders under a global CSS selector called .normal. If you want to control the text from a certain container to have different color, be sure to give it its  own class.

Here is my exmaple:

<div class="YellowTextContainer">

    ........

    <div>[CONTENTPANE]</div>

</div>

 

My CSS selector for the CONTENTPANE now is "ContentArea"

.YellowTextContainer .Normal{color: yellow;}

 

Hope this helps!!

 


Cuong Dang
Co-founder: Enliven, dnnGallery
LinkedIn | Twitter
I'm the author of DNN and Web Standards Wrox Blox

 
New Post
3/26/2008 10:06 AM
 

Not 100% sure on this but I believe the default html/textbox editor the FCKeditor uses / relies on the skin.css for its fonts as well not sure if the container.css will override this or not. Cuong you know?

 

 
New Post
3/26/2008 10:36 AM
 

The regular text throughout DNN site always render using .Normal.

Although it might look different when you're in the FCK editor, but after updating the content, it should inherit from the container.css or  skin.css if specified.

The CSS hierarchy in DNN load as below (and yes, the container.css will override the skin.css styles):

  1. Modules.css
  2. Default.css
  3. Skin.css
  4. Container.css
  5. Portal.css

Hope this helps!


Cuong Dang
Co-founder: Enliven, dnnGallery
LinkedIn | Twitter
I'm the author of DNN and Web Standards Wrox Blox

 
New Post
3/26/2008 2:34 PM
 

Thanks for the suggestions...

I did try to over ride the .Normal css inside the container.css which unfortunatelly changes all normal text on the same page to yellow.
Also the <div class="YellowTextStyle">Content Pane table here</div> did not pick up either.
The .YellowTextStyle.Normal{color:yellow} changes all containers text areas to yellow
I also tried to change to ContentArea and this caused a DNN error.

Again please continue to share any tricks or tips. As i'd greatly appreciated it.

If anyone has some sample code with a container that permits a different font color inside the content pane of the container while not effecting the other containers on the same page, please share.

Even though i understand why this is happening, I'm somewhat puzzled by this as i've seen this work elsewhere but i'm unable to find or remember how it was done.
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.

Thanks again... all suggestions are very much appreciated.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Container DoesnContainer Doesn't pull in Content Pane Text Color CSS


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