2 replies [Last post]
ToonMariner
Offline
newbie
Last seen: 14 years 22 weeks ago
Joined: 2004-11-03
Posts: 10
Points: 0

Hi all! not a complete css novice but near as damn it!

Have a problem that I suspect has a very simple solution.

I have a series of nested lists and wish to maintain the use of % font size rather than px. Unfortunately the font-size of each nested list becomes a set percentage of the parent list (texts gets smaller and smaller as the number of nested lists increases).

If anyone can decipher what I have written and understood my problem and can offer a solution then I would be very very greatful.

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 1 day ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Font size of list elements.

Hi ToonMariner,
You could set the inner list items to have a font-size of 100% or 1 em.

li{font-size:85%;} 
li li {font-size:100%;}

[/code]
Hope that helps

ToonMariner
Offline
newbie
Last seen: 14 years 22 weeks ago
Joined: 2004-11-03
Posts: 10
Points: 0

Font size of list elements.

Thanks Tony You are a scholar and a gentleman!!!!!