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...Administration ...Administration ...Using different CSS for [TITLE] fields in different containers?Using different CSS for [TITLE] fields in different containers?
Previous
 
Next
New Post
12/10/2006 12:30 AM
 
I have a couple different type of containers and need different colors and sizes for the [TITLE] tags. I was wondering how you can achieve this.

I have tried just putting a <div> tag in the template in between the [TITLE] code, but it doesn't doesn't to be working.


Cheers,
Danny
 
New Post
12/10/2006 6:07 AM
 

you can use at least 2 methods :

* use different classes for the title objects in your different containers
* use a selector (#) when defining the classes. If you want titles in your left pane always to be red, then you could do something like this: #leftpane .MyTitleClass {color:red}

doesnt hurt to do a bit of reading about css ;)


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
12/11/2006 10:47 AM
 
mr_dimsum wrote
I have a couple different type of containers and need different colors and sizes for the [TITLE] tags. I was wondering how you can achieve this.

I have tried just putting a
tag in the template in between the [TITLE] code, but it doesn't doesn't to be working.


I'm not sure what you mean by different containers, and I am also not sure what HTML the TITLE tag spits out.  However, just judging from what you wrote, it sounds like what you want to do is to style a tag differently, depending on which tag it is inside.  Does the container have a distinct id or class defined?  If so, you could do something like (this assumes that a TITLE is a header 1):

#container1 h1 {
   color: blue;
}
#container2 h1 {
   color: red;
}

That CSS makes the H1 tags different colors, depending on which container they appear in.  If the parent tags are not defined with IDs, then hopefully there's a handle up there somewhere that has a class, in which case you do:

.thisclass h1 {
   color: blue;
}
.thatclass h1 {
   color: red;
}

Sorry if this completely missed the point of your question.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Using different CSS for [TITLE] fields in different containers?Using different CSS for [TITLE] fields in 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