Jump to content
fazlionline

List Menu & Submenu

Recommended Posts

Hello I made a list menuThis is vertical, how can I make the same menu horizontalCSS Code is:

li a {	font-family: Verdana, Arial, Helvetica, sans-serif;	font-size: 12px;	text-decoration: none;	display: block;	margin: 1px;	padding: 7px;	border: 1px solid #990000;	background-color: #FFFFCC;	color: #990000;	size:200px;}li a:hover {	font-family: Verdana, Arial, Helvetica, sans-serif;	font-size: 12px;	text-decoration: none;	display: block;	margin: 1px;	padding: 7px;	border: 1px solid #990000;	background-color: #990000;	color: #FFFFCC;	size:200px;}ul a {	font-family: Verdana, Arial, Helvetica, sans-serif;	font-size: 12px;	text-decoration: none;	display: block;	margin: 1px;	padding: 7px;	border: 1px solid #990000;	background-color: #FFFFCC;	color: #990000;	size:200px;}ul a:hover {	font-family: Verdana, Arial, Helvetica, sans-serif;	font-size: 12px;	text-decoration: none;	display: block;	margin: 1px;	padding: 7px;	border: 1px solid #990000;	background-color: #990000;	color: #FFFFCC;	size:200px;}

what kind of cahnges should i do in the CSS.HTML Code is:

<body><li><a href="products.html">Products</a></li><ul>  <li><a href="laptops.html">Laptops</a></li>  <li><a href="mobiles.html">Mobiles</a></li></ul><li><a href="download.html">Download</a></li><ul>  <li><a href="macv.html">Mac Version</a></li>  <li><a href="download.html">Windows Version</a></li></ul><li><a href="contact.html">Contact Us</a></li></body>

Link is:http://www.geocities.com/fazlionline/css/css_list_menu.html

Edited by fazlionline

Share this post


Link to post
Share on other sites

You can apply float:left to your list items. You will probably need to make other style changes - see how it looks.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...