Log in

View Full Version : css navigation help



weiner769
05-09-2010, 03:37 AM
This should be a really easy answer to someone who knows what their doing. I am attempting to create a drop down css navigation. This is one of the easier ones I found online. My issue is that I want to adjust the font size and/or style. I do not know how to do so. Here is my code...


ul.nav,
.nav ul{
margin: 0;
padding: 0;
cursor: default;
list-style-type: none;
display: inline;
}

ul.nav{
display: table;
width: 900px;
height: 20px;
}
ul.nav>li{
display: table-cell;
position: relative;
padding: 2px 6px;
}

ul.nav li>ul{
display: none;
position: absolute;
max-width: 40ex;
margin-left: -6px;
margin-top: 2px;
}

ul.nav li:hover>ul{
display : block;
}

.nav ul li a{
display: block;
padding: 2px 10px;
}

ul.nav,
.nav ul,
.nav ul li a{
background-color: #fff;
color: #3366ff;
}


ul.nav li:hover,
.nav ul li a:hover{
background-color: #3366ff;
color: #fff;
}

ul.nav li:active,
.nav ul li a:active{
background-color: #3366ff;
color: #fff;
}

ul.nav,
.nav ul{
border: 3px solid #3366ff;
}

.nav a{
text-decoration: none;
}

azoomer
05-11-2010, 02:43 PM
A starting point could be to add the following to the css code you have already:

.nav{
font-size:12px;
font-style:normal;
font-family:Verdana, Geneva, sans-serif;
font-weight:normal;
}