Welcome to Virtual Tutorial World Guest!




Rollover Menu in CSS

 
Post new topic   Reply to topic    VTW Forum Index -> CSS
View previous topic :: View next topic  
Author Message
computergeek67
Administrator
Administrator


Joined: 31 Jul 2007
Posts: 144
Tokens: 147
Location: US

PostPosted: Sat Oct 20, 2007 4:40 pm    Post subject: Rollover Menu in CSS Reply with quote

With this tutorial, you can create a very clean rollover menu that you can use in your website.

First, let's establish the links. Here is the code:
Code:
<div id="nav">
<a href="#">Link</a>
<a href="#">Link</a>
<a href="#">Link</a>
<a href="#">Link</a>
<a href="#">Link</a>
<a href="#">Link</a>
<a href="#">Link</a>
</div>

You can change the # with the URL of your choice.

Now for the main code:
Code:
#nav {
width: 200px;
background-color: #0099CC;
}

#nav a:link, #nav a:visited{
color: #33FFFF;
text-decoration: none;
background-color: #006699;
display: block;
padding: 5px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
margin-bottom: 1px;
width: 190px; }

#nav a:hover{
color: #FFFFCC;
background-color: #003366;
}



_________________



Come to me if you have any questions
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    VTW Forum Index -> CSS All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Card File  Gallery  Forum Archive
Powered by phpBB © 2001, 2005 phpBB Group
Virtual Tutorial World ©2007-2008 computergeek67

Affiliates