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, ...Different text styles for different containersDifferent text styles for different containers
Previous
 
Next
New Post
11/19/2007 4:11 AM
 

I'm building a dnn site with 8 different containers. Each container has it's own content font color. I don't know how to define the classes in my stylesheet. Two different containers:

 



Container with blue background en white text

 

<table class="blauw" width="100%" border="0" bgcolor="#00aeef">
<tr><td class="titel">[TITLE]</td></tr>
<tr><td id="ContentPane" runat="server">[ACTIONS]</td></tr></table>

 


 

Container with white background en black text

<table class="groeneletters" width="100%" border="0" bgcolor="#ffffff">
<tr><td class="titel">[TITLE]</td></tr>
<tr><td  id="ContentPane" runat="server">[ACTIONS]</td></tr></table>

 


 

I tried different solutions:

#contentpane.Groeneletters p {
color:black;}

p#contentpane.Groeneletters {
color:black;}

p.Groeneletters {
color:black;}

How can I do this

 
New Post
11/19/2007 4:47 AM
 

You might want to check  a CSS book or tutorial to polish up your CSS knowledge.

You have a container which has a class "groeneletters" So the cascade will be

.groeneletters p or .groenletters td or .groenletters td p or .groenletters td .Normal

Please be aware of the fact that classnames can be case sensitive if you have a strict stylesheet.  For those who speak Dutch the setting color: black; for the style "groeneletters" can be a bit confusing ;)

Goodluck,

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
New Post
11/19/2007 7:07 AM
 

Thanks for your reply. I know that .groeneletters td works for me but I will use it als for padding. So if I use .groeneletters td it applies to the whole table. And that's not what I want.

I only want to manipulate the td with the modules: <td class="tekst" id="ContentPane" runat="server">[ACTIONS]</td>

So I want to combine the class of the table and the id of the td.

"groeneletters" is used because this container contains a green head title, so it can be recognized easily.

 
New Post
11/19/2007 7:27 AM
Accepted Answer 

.groeneletters .Head  { color: green;}

for the title

.groeneletters .tekst  { color: black;}

for the text in the contentpane.

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
New Post
11/19/2007 7:37 AM
 

.groeneletters .tekst {color:black;} doesn't work

This works:

.groeneletters .Normal {color:black;}

Thanks anyway

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Different text styles for different containersDifferent text styles for different containers


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