Click here to Skip to main content
15,885,067 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<style>
CSS
ul
{
list-style-type:none;
margin:0;
padding:0;
}
a:link,a:visited
{

font-weight:bold;
color:#FFFFFF;
background-color:#98bf21;
width:120px;
text-align:center;
padding:4px;
text-decoration:none;
text-transform:uppercase;
}
a:hover,a:active
{
background-color:#7A991A;
}


</style>


but this is only for vertical I also want horizontal menue
Posted
Comments
Sergey Alexandrovich Kryukov 24-Mar-14 17:31pm    
If you wrote these styles by yourself, instead of copying it from somewhere, you would create them for horizontal menus exactly as easy as for vertical ones. Why do you think someone else will do it for you?
—SA
ramshamuzaffer 25-Mar-14 10:39am    
Sergey .. I know how to to write horizontal , but i want both at once
syed shanu 24-Mar-14 21:42pm    
Check this links hope this will help you.but before posting questions in Code project use google .If you search in google with right key word you will get your all answers.
http://forums.asp.net/t/1394012.aspx?Css+Friendly+Adapters+asp+net+Horizontal+Menu+IE6
http://aspsolutionkirit.blogspot.kr/2013/07/how-to-create-vertical-menu-using-css.html
http://stackoverflow.com/questions/14509580/asp-net-menu-item-vertical-spacing
http://stackoverflow.com/questions/12400962/horizontally-align-asp-net-menu-on-the-top
ramshamuzaffer 25-Mar-14 10:56am    
thnx syed shanu :) it works I have combine both code
Sergey Alexandrovich Kryukov 25-Mar-14 11:38am    
Not clear. Your code sample is nothing but CSS. Do you just want one set of styles or both menus? But 1) this is not too hard to develop, not clear what's the problem; 2) style along does not have much sense without at least HTTP+Javascript sample of the menu itself.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900