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, ...change container Title token Stylechange container Title token Style
Previous
 
Next
New Post
4/21/2006 1:23 PM
 

I have created a container and I want to set the font style for the Title token.  I tried creating a class in my stylesheet and accessing, but the title seems to be ignoring it, but I may not be doing this right.

This is what the ascx file had at first:
<TD valign="middle" width="100%" nowrap>&nbsp;<dnn:TITLE runat="server" id="dnnTITLE" /></TD>

This causes the container Title to have the default module title css attributes from DNN (I think).  I need to change the font, size, color, etc.  I have a css file with my container, but not an xml file.  Can I do this with my css file? I'm assuming I need the id="dnnTitle" in the <dnn tag.  Do I not?  I tried the following, but it didn't do anything (I created a Title class in my css):

ascx file now:
<TD valign="middle" width="100%" nowrap id="Title">&nbsp;<dnn:TITLE runat="server" /></TD>

css file:
.CC01 #Title{
font-family: Georgia;
font-size: 14px;
font-weight:bold;
text-align: center;
}

 
New Post
4/21/2006 2:39 PM
 

DNN needs the 'id' inside the title declaration.

Try this:

The .ascx:
<dnn:TITLE runat="server" id="dnnTITLE" CssClass="MyTitleClass" />

The .css:
.MyTitleClass
{
 font-family: Tahoma, Arial, Helvetica;
 font-size:  11px;
 font-weight: Bold;
 color: 32546D;
}

Works every time.

 
New Post
4/21/2006 3:14 PM
 

Well that at least sort of worked!!!!  :)

It definitely changed my font family, but it doesn't seem to be reading the font size, color, weight, or text-align.  When I refreshed, it definitely changed the title bar.  It looks like it's taken the font-family.  Is there something wrong with my css?  The default text on my skin is Georgia... could it be reading that and not even reading my container css? I tried setting the font-size to 30px and the color to red just to see a visible change and nothing happened.  In addition, I changed the font-family to Helvetica, Arial and it's showing Georgia still.

http://www.lps.k12.co.us/DotNetNuke/

I have in the ascx file:

<dnn:TITLE runat="server" id="dnnTITLE" CssClass="cssTitle" />

I have in the css file:

.CC01 #cssTitle
{ font-family: Georgia;
font-size: 18px;
font-weight: bold;
text-align: center;
color: #103b6a;}

 
New Post
4/21/2006 4:59 PM
 

Change css to:
.cssTitle
{ font-family: Georgia;
font-size: 18px;
font-weight: bold;
text-align: center;
color: #103b6a;}

 
New Post
4/24/2006 10:58 AM
 
Thank you. 
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...change container Title token Stylechange container Title token Style


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