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

Margin problem in list using Firefox 1

Status
Not open for further replies.

harrymossman

Technical User
Sep 5, 2002
255
US
I am trying to use a <li> for a navigation list (because it is a list). I have eliminated the bullets. Now I want to eliminate the space that they would have taken. The following looks fine in IE but not in Firefox.

Code:
<ul>
<li class="none left0"><a href="about_us.htm">About Us</a></li>
<li class="none left0"><a href="jobs.htm">Employment</a></li>
etc.
</ul>

left0 is as follows in the style sheet
Code:
.left0 {margin-left: 0em;}
 
You need to style your ul - never mind the li:
Code:
<ul style="list-style-type:none;margin-left:0">

;-)
 
Actually, different browsers use different methods to create the indentation. Best way to do it is to cover all options:
Code:
ul#navigation, ul#navigation li {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
 
Thanks to both of you! Vragabond's solution worked great. I couldn't get dkduke's to work in FF but maybe I messed something up.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top