SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Apr 2007
    Posts
    398
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    A quick menu issue

    Hi Guys,

    I'm building a menu here:

    http://www.slougheaz.org/menu2.html

    and it's all going well apart from two things I can't work out:

    1) Why my menu jumps when you hover over it
    2) How I can get the hover event to only underline the word (as per the example)

    Thanks

    Chris

  2. #2
    SitePoint Wizard bronze trophy DaveWoods's Avatar
    Join Date
    Dec 2004
    Location
    Derbyshire - UK
    Posts
    2,651
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Replace all your CSS with this

    Code:
    * { padding: 0; margin: 0; }
    body {
      padding: 10px;
      font-family: verdana, sans-serif;
      color: #666;
      font-size: 85%;
    }
    ul, li {
      list-style:none;
      line-height: 20px;
    }
    li {
      background:#FFF url(furniture/little_arrow.jpg) no-repeat 0 5px;
      width:200px;
      padding-left: 10px;
    }
    a {	
      color: #666;
      text-decoration:none;
    }
    a:hover {
      color: #333; 
      border-bottom: 1px dashed #333;
    }


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
  •