Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

nested lists, em font tags, and inheritance

Status
Not open for further replies.

myatia

Programmer
Nov 21, 2002
232
0
0
Hi, all,

I'm having issues with some nested list tags. I've set the font for each <li> element to 0.8em. When I nest the list tags, as shown below, the nested text shows up really small (0.64em, I'm assuming). How do I stop this? Any advice would be appreciated.

Misty

Stylesheet
Code:
div.bodyCopy li { font-size:0.8em; line-height:1.5em; }

Nested list
Code:
<ul>
<li>Non-competitive environment</li>
<li>Link on Conference website</li>
<li>Email blasts</li>
<li>Recognition in various publications
   <ul>
      <li>Footnote</li>
      <li>Conference Program</li>
      <li>Press Release</li>
   </ul></li>
<li>Prominent signage at event</li>
<li>Attendee list at conclusion of conference</li>
</ul>


Misty Garrick
 
Yep, that's the default behavior. Is there a way to override it so that both the top-level and nested list items are both 0.8em? I need to add a statement like the following to my CSS, but don't know what code will do it:

ul li ul li { stop-inheriting-code-here }

"font-size:inherit" works here for Firefox, but not IE.

Any ideas?

Misty



Misty Garrick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top