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, ...DNN font size control + CSSDNN font size control + CSS
Previous
 
Next
New Post
4/12/2006 4:43 AM
 

Hello

Could somebody please tell me the name of the CSS styles which control the font for the control panel and the font that comes with modules such as User Online.  At the moment I am editing:

body { font: small Verdana, Geneva, Arial, Helvetica, sans-serif line-height: 1.1;   }

 td,th,div,span,p,a,input,textarea{font-family:Verdana, Arial, Helvetica, sans-serif; color:#303030; font-size: 9px;}

.Head   {
    font-size: 1.1em;
    font-weight:  bold;  color: #fff;
}

.SubHead    {
    font-size:  0.9em;
    font-weight:    bold;
}


.SubSubHead {
    font-size:  0.9em;
    font-weight:    bold;
}

.Normal, .NormalDisabled, .NormalTextBox, .NormalRed, .NormalBold,.NormalTextBox
{font-size: 1.0em;
    color: #303030;
    font: normal 0.9em verdana, tahoma, arial, helvetica, sans-serif;
}

.NormalRed
{
 font-size: 1.0em;
    font-weight: bold;
    color: #ff0000
}

.NormalBold
{
 font-size: 1.0em;
    font-weight: bold
}

But the font is displayed as extra extra large, (approx: 50px;) any suggestions?

Are these the styles I need or am I missing something?

Thanks

Laura

 
New Post
4/13/2006 7:21 PM
 
The Control Panel uses the SubHead and CommandButton classes mostly.
 
New Post
4/14/2006 9:48 AM
 

Hi Sam

Thanks for the advice but somehow what ever changes I make are ignored.  e.g. the font displayed in my Users on Line is massive.

Also the background colour I have set for my containers is also ignored.

I don't know what to try next. I am obviously doing something wrong, but what?

Any suggestions.

 

Thanks

Laura

 

 
New Post
4/14/2006 10:13 AM
 

I'm working blind here of course, so all I can do is make suggestions you might want to try. Basically, get things to display correctly then fine-tune it as needed. I'd start by removing this junk from my .css file and trying it again on browser refresh, then adding back as needed:

body { font: small Verdana, Geneva, Arial, Helvetica, sans-serif line-height: 1.1;   } (missing a semicolon here?)

 td,th,div,span,p,a,input,textarea{font-family:Verdana, Arial, Helvetica, sans-serif; color:#303030; font-size: 9px;}

Another thing, I never liked to mix font sizing units in px and em... I just use one or the other and stick with it. But that's just me, there are plenty of css gurus around who might say differently.

Once you get things working as you want them, come back here and post any pointers you might have. Who knows, someone else might have the same problem.

 
New Post
4/14/2006 10:13 AM
 

Laura,

The text sizing control works by having the base font-size defined for Body, .Normal, .NormalTextBox, TH, TFOOT, THEAD, TD, SPAN, DIV, A. All other classes use relative font-sizes (defined using "em" units). If text size appears abnormally large or small, it is most likely because the style that is active on the element has an incorrectly defined relative value. You can find out the exact cause by doing a bit of detective work.

First, download the IE Developer Toolbar here: http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&DisplayLang=en

Once this is installed, go to the page with the problem, then select "View DOM" from the toolbar. This will cause your browser window to be split horizontally and a new menu will appear. Next, click Find > Select element by Click... Now, you will be able to go to any element of the page and click on it to see exactly what properties and CSS attributes it has. You can diagnose the problem by seeing exactly what CSS classes are acting on the text that is sized incorrectly and fixing those. Sometimes, you have to work your way up through its parent elements to find the true culprit.

This is how I troubleshoot CSS issues and it makes the process a lot easier than guesswork.

HTH.

Nik

 


Nik Kalyani
Co-founder
DotNetNuke Corporation
Blog | Twitter | FaceBook
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DNN font size control + CSSDNN font size control + 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