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  |  

PortalWebHosting
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  Container Doesn't pull in Content Pane Text Color CSS
Previous Previous
 
Next Next
New Post 3/25/2008 4:51 PM
User is offline RegGFX
64 posts
www.extremefx.net
10th Ranked


Container Doesn't pull in Content Pane Text Color CSS 
Modified By RegGFX  on 3/25/2008 6:59:57 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 9:39 PM
User is offline Cuong Dang
285 posts
engagesoftware.com
9th Ranked


Re: Container Doesn't pull in Content Pane Text Color CSS 
Modified By Cuong Dang  on 3/25/2008 11:40:07 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
Engage Software
St. Louis, MO
314.966.4000



The leading provider of DotNetNuke support, training and custom module development.
 
New Post 3/26/2008 8:06 AM
User is offline keeperofstars
252 posts
9th Ranked


Re: Container Doesn't pull in Content Pane Text Color CSS 

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 8:36 AM
User is offline Cuong Dang
285 posts
engagesoftware.com
9th Ranked


Re: Container Doesn't pull in Content Pane Text Color CSS 
Modified By Cuong Dang  on 3/27/2008 10:11:25 PM)

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
Engage Software
St. Louis, MO
314.966.4000



The leading provider of DotNetNuke support, training and custom module development.
 
New Post 3/26/2008 12:34 PM
User is offline RegGFX
64 posts
www.extremefx.net
10th Ranked


Re: Container Doesn't pull in Content Pane Text Color CSS 

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 Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  Container Doesn't pull in Content Pane Text Color CSS
 


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.

 


ASP.NET Web Hosting for $3.95
3 Month FREE ASP.NET Hosting! FREE Setup! DNN Support! FREE Domain Name! FREE Components! Host multiple websites on 1 plan! 30 Days Money Back Guarantee!
www.dailyrazor.com
Cestus Websites
DotNetNuke websites en services in Nederland. Cestus Websites levert websites, projectmanagent, skins, modules, training en gespecialiseerde hosting op basis van het CMS DotNetNuke.
www.dotnetnuke-websites.nl
FREE Skins, Modules & Control Panel!
Choose how much you want to pay on our Skins, Modules, Containers and Control Panel - Starting from FREE!
www.dnngroup.com

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