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, ...Overriding Font SizesOverriding Font Sizes
Previous
 
Next
New Post
6/27/2007 2:01 AM
 
I'm attempting to set some new font sizes in the portal stylesheet and am having a hard time overriding the skin and main stylesheets. I want to use proper sizes for fonts that will be readable and use either emphasis, percentages, or relative sizes such as small, medium, etc. I want to stay away from pixels or points which is usually a bad practice from an accessibility standpoint. Has anyone had any luck with this? I'm mainly trying to override the .normal, p, and h1 through h6 styles. The default font sizes are very hard to read in firefox.
 
New Post
6/27/2007 10:27 AM
 

Hello,

I have managed to set up skins using percentages for font sizes to allow resizing. - You can download this free skin to see an example of the code:
Free Skin - Simple Red Leaf CSS Skin

I've also created a video tutorial covering this for subscribers:
How to create resizable text
(This page also includes a free article which outlines the techniques)

Hope this gets you started, thanks,

Lee


Lee Sykes - DNN Creative Magazine - 600+ Video Tutorials, Articles, Interviews - July Issue 58 out now!
DNN Creative Magazine for DotNetNuke

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
 
New Post
6/27/2007 10:43 AM
 

David,

I agree with the accessibility compliance. I tend to use percentages and relative sizes for the fonts instead of using pixel or points. Not quite "bullet-proof" in the web design world.

Here are a few main classes for the dnn portal that you might want to override:

html, body {}
input, select, td, p {}
th {}
h1, h2, h3, h4, h5, h6 {}
li li, li p, blockquote p {}

.normal, .Normal {}
.NormalDisabled {}
.NormalBold {}
.NormalRed {}
.Normal td {}
.NormalTextBox {}

.Head{}
.SubHead {}
.SubSubHead {}

I'm sure there are more but this should change the main fonts that visible to everybody.

Hope this helps,

Cuong Dang
Engage Software
St. Louis, MO
314.966.4000



The leading provider of DotNetNuke support, training and custom development.


Cuong Dang
Co-founder: Enliven, dnnGallery
LinkedIn | Twitter
I'm the author of DNN and Web Standards Wrox Blox

 
New Post
6/27/2007 2:21 PM
 
Thanks for the great responses. Which is considered better; to set the body tag at font-size: 100% and then use em's, to set it at small and then use percentages, or to set the body tag as 1em and then use percentages? Or is there a better technique that I'm overlooking?
 
New Post
6/29/2007 10:39 AM
 

David,

This would be a CSS-related question. I believe that you can find numorous articles out there explaining the "best practices" for choosing the right type face or font size for your portal.
In my experience, I tend to use absolute-size keyword (xx-small, x-small, small, medium, large, x-large, xx-large) in association with percentages for my sites and clients'.

Here is an example:

Set your body to:

body{font-size: small;}  ---base size

Then use percentages for the rests such as header, paragraph.

h1{ font-size: 160%;}
p {font-size: 90%}

When user set their text-size view on their screen to be the smallest, small, medium, large, or even the largest, your font will scale up or down in a constant value from the base size no matter how large or small the base size is. 

In this example, your paragraph font will be 90% of the "small" value defined in base size, your h1 will display at 160% from the base size.

Note: be sure to test our different browsers and see if it works properly.

Hope this helps!

Cuong Dang
Engage Software
St. Louis, MO
314.966.4000



The leading provider of DotNetNuke support, training and custom development.


Cuong Dang
Co-founder: Enliven, dnnGallery
LinkedIn | Twitter
I'm the author of DNN and Web Standards Wrox Blox

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Overriding Font SizesOverriding Font Sizes


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