Results 1 to 3 of 3

Thread: Menu

  1. #1
    Join Date
    Feb 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Menu

    Hello... i am trying to create a simple rollover effect when users roll over the links on the menu bar
    http://www.umix.vgremixed.com

    the problem i am having is it just does the color change for txt background. i would like it to change color of the whole cell. i am using internal css so you can see my css in the source.

    it is just very basic at the moment.

    any help would be greatly appreciated.

    Thanks
    Last edited by dragon86; 02-05-2009 at 08:58 PM.

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Change this:
    Code:
    a:hover {
    background-color:#66FF33;
    color:white;
    font-weight:bold;
    text-decoration:none;
    }
    to this:
    Code:
    td:hover {
    background-color:#66FF33;
    color:white;
    font-weight:bold;
    text-decoration:none;
    }
    You will want to target only the cells in the menu so you can give the table row containing the menu an id, say "menu" and make the code:
    Code:
    #menu td:hover {
    background-color:#66FF33;
    color:white;
    font-weight:bold;
    text-decoration:none;
    }
    Also, since you are so early into making this page, I'd like to give you a tip that will save you a lot of work in the future, try not to use tables for design, take a look at this article for more info:
    http://www.hotdesign.com/seybold/everything.html

    Good luck!

  3. #3
    Join Date
    Feb 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ok i tried adding just td:hover

    but that takes away all aspects of the hover effect... now it does nothing

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
  •