Advanced Search

Results 1 to 3 of 3

Thread: horizontal MENU to Vertical

  1. #1
    Join Date
    May 2006
    Posts
    266
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default horizontal MENU to Vertical

    Hi i am trying to use this menu however i can't seem to make it vertical

    http://www.dynamicdrive.com/style/cs...rizontal_menu/

    if any one can help that would be great
    THX
    The web in one word.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Just use an existing vertical menu as the base and change the :hover state (and colors). Post back with some code.

  3. #3
    Join Date
    May 2006
    Posts
    266
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Hi here is what i have done i have no idea what i am doing wrong
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled 1</title>
    
    
    
    <style type="text/css">
    .glossymenu{
    	padding: 0 0 0 34px;
    	margin: 0 auto 0 auto;
    	background: url(http://www.twitoosearch.com/images/menu/menug_bg.png) repeat-x; /*tab background image path*/
    	height: 46px;
    }
    
    .glossymenu li{
    	float:left;
    }
    
    .glossymenu li a{
    	float: left;
    	display: block;
    	color:#000;
    	text-decoration: none;
    	font-family: sans-serif;
    	font-size: 13px;
    	font-weight: bold;
    	padding:0 0 0 6px; /*Padding to accomodate left tab image. Do not change*/
    	height: 46px;
    	line-height: 46px;
    	text-align: center;
    	cursor: pointer;	
    }
    
    .glossymenu li a b{
    	float: left;
    	display: block;
    	padding: 0 24px 0 8px; /*Padding of menu items*/
    }
    
    .glossymenu li.current a, .glossymenu li a:hover{
    	color: #fff;
    	background: url(http://www.twitoosearch.com/images/menu/menub_hover_left.png) no-repeat; /*left tab image path*/
    	background-position: left;
    }
    
    .glossymenu li.current a b, .glossymenu li a:hover b{
    	color: #fff;
    	background: url(http://www.twitoosearch.com/images/menu/menub_hover_right.png) no-repeat right top; /*right tab image path*/
    }
    
    /*Credits: Dynamic Drive CSS Library */
    /*URL: http://www.dynamicdrive.com/style/ */
    
    #ddblueblockmenu{
    border-bottom-width: 0;
    width: 185px;
    }
    
    #ddblueblockmenu ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
    font: normal 90% 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif;
    }
    
    #ddblueblockmenu li a{
    display: block;
    padding: 3px 0;
    padding-left: 9px;
    width: 169px; /*185px minus all left/right paddings and margins*/
    text-decoration: none;
    color: white;
    border-bottom: 1px solid #90bade;
    border-left: 7px solid #1958b7;
    }
    
    * html #ddblueblockmenu li a{ /*IE only */
    width: 187px; /*IE 5*/
    w\idth: 169px; /*185px minus all left/right paddings and margins*/
    }
    
    #ddblueblockmenu li a:hover {
    background-color: #2586d7;
    border-left-color: #1c64d1;
    }
    
    #ddblueblockmenu div.menutitle{
    color: white;
    border-bottom: 1px solid black;
    padding: 1px 0;
    padding-left: 5px;
    background-color: black;
    font: bold 90% 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif;
    }
    
    .ddblueblockmenu li a b{
    	float: left;
    	display: block;
    	padding: 0 24px 0 16px; /*Padding of menu items*/
    }
    
    .ddblueblockmenu li.current a, .ddblueblockmenu li a:hover{
    	color: #fff;
    	background: url(http://www.twitoosearch.com/images/menu/menub_hover_left.png) no-repeat; /*left tab image path*/
    	background-position: left;
    }
    
    .ddblueblockmenu li.current a b, .ddblueblockmenu li a:hover b{
    	color: #fff;
    	background: url(http://www.twitoosearch.com/images/menu/menub_hover_right.png) no-repeat right top; /*right tab image path*/
    }
    
    </style>
    
    </head>
    
    <body>
    <div id="ddblueblockmenu">
    
    <ul class="ddblueblockmenu">
    <li class="current"><a href="http://www.dynamicdrive.com"><b>Home</b></a></li>
    <li><a href="http://www.dynamicdrive.com/new.htm"><b>What's New</b></a></li>
    <li><a href="http://www.dynamicdrive.com/revised.htm"><b>What's Revised</b></a></li>
    <li><a href="http://www.dynamicdrive.com/forums/"><b>Help Forums</b></a></li>
    </ul>
    
    </div>
    
    </body>
    
    </html>
    The web in one word.

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
  •