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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netscape loses style in <LI> elements

Status
Not open for further replies.

MrSki

Programmer
Dec 13, 2000
66
US
I often have problems with <LI> items losing style sheet definitions in Netscape. Seems no matter what I try they resort to the browser default instead of any of the definitions used on the rest of the page.

Does anyone have a solution to this?
Mitch Duszynski
Web Developer
Human Kinetics
PO Box 5076, Champaign, IL 61825
Tel: 217-351-5076 x2474 | Fax: 217-351-2674
mitchd@hkusa.com |
 
The solution is very simple. You have to create a style where you define how <li> should look like:

.litem1 { font: bold 10pt verdana,arial,sans-serif }
.litem2 { font: 12pt times,serif; background color: #eeeeee }

and then attach these styles to <li> tags in html code:

<ol>
<li class=litem2> . . .
<li class=litem1> . . .
</ol>

good luck
 
I will have to give that a try. I had tried defining the <LI> item as

LI {font-size: 9pt; font-family: Arial, Helvetica, sans-serif;}

in my style sheet but it did not work. I had not thought of trying it as a class.

Thanks for the tip!

Mitch Duszynski
Web Developer
Human Kinetics
PO Box 5076, Champaign, IL 61825
Tel: 217-351-5076 x2474 | Fax: 217-351-2674
mitchd@hkusa.com |
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top