Jump to content

css menu ie vs ffox


malibujamba
 Share

Recommended Posts

Hello,I have created a menu with css but there is one thing I can't figure out.In internet explorer it seems to work fine but in firefox I see dots in front of every '<li> or <a>'.Does anyone know what I am doing wrong?this is the css:

#menu {	position: absolute;	margin-top: 250px;	width: 700px;	height:25px;	font-family: verdana;	font-size: 11px;	font-weight: bold;	background-color: #777;}#menu ul {	margin-top: 3px;	margin-left: 100px;}#menu ul li {	float: left;	color: #ffffff;	margin-right: 50px;}#menu a {	color: #55A3D1;	text-decoration: none;}#menu a:hover {	text-decoration: none;	color: #FF8441;}

and this is the code:

<div id="menu">		<ul>						<li><a href="index.html">link1</a></li>					<li><a href="index.html">link2</a></li>			<li><a href="index.html">link3</a></li>				</ul>		</div>

Link to comment
Share on other sites

Firefox is doing it correctly, unordered lists are meant to put dots next to each list item.In order to prevent that you can add a line of CSS:#menu ul { margin-top: 3px; margin-left: 100px; list-style-type: none;}

Link to comment
Share on other sites

Each browser puts different padding and margins to the list objects.Try this:#menu ul { margin-top: 3px; margin-left: 100px; list-style-type: none; margin: 0; padding: 0; padding-left: 20px; /* Change this to whichever value you want */}#menu ul li { float: left; color: #ffffff; margin-right: 50px; margin: 0; padding: 0;}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...