navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

CSS and font sizes in lists

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> CSS and font sizes in lists
Page: [1]
 
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
CSS and font sizes in lists - 5/23/2003 13:30:12   
I' m switching all of my web pages over to CSS-based. My department is also concerned about Section 508 accessibility, so I' m using " em" for my font size units instead of " pt" or " px" . The problem I' m running into is that if i specify the <li> font size in em, nested lists display smaller and smaller text.

Example

What can I do, besides use a fixed font size (an accessibility no-no), to get all my text the same size?

Sherry

_____________________________

Digital data lasts forever...or 5 years, whichever comes first!
abbeyvet

 

Posts: 5095
From: Kilkenny Ireland
Status: offline

 
RE: CSS and font sizes in lists - 5/23/2003 16:30:43   
em' s still have quite poor cross browser support and you might be better going with percentages instead.

One way to control this problem is to define a text size in the body selector, and allow this to be the base text size for all your main text - lists, paragraphs etc. Thus you do not need to define any text size at all for the p, a or or ul selectors, if it is undefined they will inherit their size from the body selector. I find 75%-80% works quite well for this, depending on what font you are using.

Then you define heading text, or any text you wish to display larger than this, by using 110% or 120% in the relevant selector. This will be taken as a percentage of the size defined in the body selector - so it will be 110% 0r 120% of 75%, if you know what I mean.

You still need to test in a range of browsers, but it is easier to work this way than by trying to define the size of each individiual element.

< Message edited by abbeyvet -- 5/23/2003 4:32 PM >


_____________________________

Katherine

:: InKK Design :: InKK Domains

(in reply to slbergh)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> CSS and font sizes in lists
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts