Chatbox

You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Html Horizontal Menu on 8/3/2012, 10:55 am

grimofdoom

avatar

Member
I need help. I need a horizontal menu i could use in an html page. Can someone please give me a script that makes a horizontal line with onmouseover type to show A box that can use links.

View user profile

2 Re: Html Horizontal Menu on 20/3/2012, 6:09 am

Code:
<ul>
    <li><a href="#">Link 1</a></li>
    <li><a href="#">Link 2</a></li>
    <li><a href="#">Link 3</a></li>
    <li><a href="#">Link 4</a></li>
    <li><a href="#">Link 5</a></li>
</ul>

Smile

View user profile

3 Re: Html Horizontal Menu on 20/3/2012, 7:47 am

Drogba921

avatar

Administrator
Expanding on Terry's post. You'll need to add CSS

Code:
<div id="navigation">
<ul>
   <li><a href="#">Menu Item 1</a></li>
   <li><a href="#">Menu Item 2</a></li>
   <li><a href="#">Menu Item 3</a></li>
   <li><a href="#">Menu Item 4</a></li>
</ul>
</div>

Code:
#navigation{
width:100%;
height:30px;
background-color:#999;
}
#navigation ul{
margin:0px; padding:0px;
}
#navigation ul li{
display:inline; height:30px; float:left; list-style:none; margin-left:15px;
}
#navigation li a{
color:#fff; text-decoration:none;
}

#navigation li a:hover{
text-decoration:underline;
}

View user profile http://www.codinghelp.org

4 Re: Html Horizontal Menu on 20/3/2012, 7:51 am

Oops - I beg your pardon. I misread the post and thought that you wanted a vertical menu.

View user profile

5 Re: Html Horizontal Menu on 20/3/2012, 3:53 pm

Drogba921

avatar

Administrator
Not a problem terry Smile

View user profile http://www.codinghelp.org

6 Re: Html Horizontal Menu on 20/3/2012, 4:40 pm

grimofdoom

avatar

Member
Sorry i havnt replied sooner, i meant a horizontal with simple drop down box(yes i know css is needed.)

View user profile

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum