Results 1 to 2 of 2

Thread: Solid block menu rollover question

  1. #1
    Join Date
    May 2007
    Posts
    66
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Solid block menu rollover question

    Hello everyone,

    I just joined the DD forum and love the wealth of information regarding web design.

    I have a question regarding the horizontal CSS menu. I am trying to get the rollover to change color from blue to black. I used the same css code as the solid block horizontal menu example but can't get it to work (See code below). Please let me know what changes are needed to make this work. I also provided the url link to reference so you can see the problem. Also you will notice the little black space beside contact us. How or can this be removed? Thanks


    background: #000000 url(web211/jcdbluemenuredo.gif) center center repeat-x;

    .blockmenu li a:hover, .blockmenu li .current{
    background: #3266cd url(web211/jcdblackmenu.gif) center center repeat-x;
    }

    I also used this code for the hover effect when the #3266cd url did not work:

    background: transparent url(web211/jcdblackmenu.gif) center center repeat-x;


    [Broken Link Removed]
    Last edited by jscheuer1; 09-30-2010 at 06:55 PM. Reason: remove broken link

  2. #2
    Join Date
    May 2005
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    sorry that this isnt a direct answer to your question, but this is a css based menu that supports rollover that i have used.

    Code:
    <head>
    <style type="text/css">
    a.menu:link, a.menu:visited, a.menu:active, a.menu:hover 
    { 
       display: block; 
       line-height: 34px; 
       width: 100&#37;; 
       text-align: center; 
       text-decoration: none;
       font-family: arial; 
       font-size: 12pt; 
       color: white; 
       background-color: #3266CD; 
       border: none; 
    } 
    a.menu:hover 
    { 
       color: white; 
       background-color: green; 
    } 
    </style>
    </head>
    <body>
    <table style="width:740px; height:34px; padding:0px;"><tr><td><a href="" class="menu">About Us</a></td><td><a href="" class="menu">graphic design</a></td></tr></table>
    </body>
    you have a lot of control over design of the menu. to add more links, just add more <td>'s

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
  •