Jump to content

list item on same line


monty 187

Recommended Posts

If you don't need bullets to appear, the easiest way is:

li {display:inline;}

If you do need them... hm... for FF and Opera is easy, but DAMN, this IE. For FF and Opera it's something like:

li:before {content: •}

Link to comment
Share on other sites

If you don't need bullets to appear, the easiest way is:
li {display:inline;}

If you do need them... hm... for FF and Opera is easy, but DAMN, this IE. For FF and Opera it's something like:

li:before {content: •}

Thanks a million
Link to comment
Share on other sites

Thanks a million
sorry guys but I cant get each element on the same line, my css reads
#menubar ul{	display:inline;	text-align:right;	list-style-type: none;	margin: 0px;}#menubar li a{	display:inline;	width: auto;	height: 20px; 	text-decoration: none;	text-align: centre;	margin-right: 10px;	margin-bottom: 2px;	margin-top: 2px;	padding: 0px;	padding-left: 10px;	vertical-align: middle;	font-size: 14px;	font-weight: bold;	background-color: #FF0000;	color: white;}#menubar li a:hover{	background-color: #FFFFFF;	color: black;}

but the elements are on different lines?Any ideas?Michael

Link to comment
Share on other sites

#menubar li a{ display:inline; float:left width: auto; height: 20px; text-decoration: none; text-align: centre; margin-right: 10px; margin-bottom: 2px; margin-top: 2px; padding: 0px; padding-left: 10px; vertical-align: middle; font-size: 14px; font-weight: bold; background-color: #FF0000; color: white;}
Link to comment
Share on other sites

thanks, that worked great!!
Sorry, it worked in firefox but not in IE. Their are a few items which are in different formats in both, is this an issue with css? I usually use tables to structure data but decided I need to start using css for more control.Thanks
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
×
×
  • Create New...