Results 1 to 2 of 2

Thread: css navigation help

  1. #1
    Join Date
    Jan 2010
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default css navigation help

    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...

    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;
    }

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    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;
    }

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •