Change from simple txt mouseove to buttons..Howto?

Discussion in 'CSS' started by tones_ie, Mar 29, 2008.

  1. #1
    Hi guys...

    I have a side menu that has a mouse over effect as u go over the links...

    heres teh css for the side menu in question...ive tried swapping out different things to see if i could get a button in but with no luck ! :(

    llooking to replace the menu tahst there now with a nice llooking button if possible...

    /**************************************************************
       .sideMenu: The side bar menu
     **************************************************************/
    
    ul.sideMenu {
      margin: 0;
      padding: 0;
    }
    
    .sideMenu li {
      display: inline;
      
      /* Needed since IE fails when you give it list-style: none; */  
      list-style-image: url('{template_url}/foo.gif');
      font: 400 1.3em "trebuchet ms", serif;
    }
    
    .sideMenu li a {
      display: block;
      margin: 0.2em 0;
      padding: 3px 5px;    
      
      text-decoration: none;
      color: #FFF;
    } 
    
    .sideMenu li a:hover {
      color: #0f6d38;
      background: #5F5F5F;
    }
    
    /* Active menu item */
    .sideMenu li.here {
      display: block;  
      padding: 5px;
      color: #0f6d38;
      background: #000000;
    }
    
    /* Submenu of active menu item */
    .sideMenu li.here ul {
      margin: 0;
      padding: 0;
    }
    
    .sideMenu li.here ul li a {
      padding-left: 35px;
      font: 400 0.55em verdana, arial, sans-serif; 
      color: #FFF;  
      background: url('{template_url}/images/bg/bullet.gif') no-repeat 10px 0px;
    }
    
    .sideMenu li.here ul li a:hover {
      color: #fff200;
      background: #5F5F5F url('{template_url}/images/bg/bullet.gif') no-repeat 10px 0px;
    }
    Code (markup):
    Thanks in advance for any assistance...

    tones
     
    tones_ie, Mar 29, 2008 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Got a link to an example page? (I'm asking because you have images in there.)
     
    Dan Schulz, Mar 29, 2008 IP
  3. affiliatesheree

    affiliatesheree Peon

    Messages:
    116
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you replace your text menu with buttons, it will decrease your SEO. Text navigation menus are much better, in my opinion, and others as well.

    Sheree
     
    affiliatesheree, Mar 29, 2008 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think he wants a visual change, not a structural one, Sheree. And if the buttons used are for the main menu, the decrease will be minimal (especially if the site has already been optimized properly).
     
    Dan Schulz, Mar 29, 2008 IP
  5. tones_ie

    tones_ie Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hay guys...thanks soo much for teh replies...

    @ Dan Schulz

    Here u go...sorry shouldve put that in initially
    http://mikalaerin.com/realtor3/

    and u are correct..im after a visual change from txt to buttons..jazz it up a lil....

    @ affiliatesheree....actually wasnt aware of that... ! but its wat is wanted..buttons...soo... :)

    again...thanks a lot guys...
     
    tones_ie, Mar 30, 2008 IP
  6. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I'd use an image substiution technique. Fake the appearance of the button with an image served as a background on a SPAN tag.

    Here's an example of what I'm talking about: http://www.pmob.co.uk/temp/navimagereplace.htm (of course the image can be whatever you want it to).

    I have another example here: http://www.dan-schulz.com/for-others/pet/dropdown-menu/template.html (this example is a dropdown menu).

    The folder is unlocked, so feel free to grab the code and play around with it: http://www.dan-schulz.com/for-others/pet/dropdown-menu/
     
    Dan Schulz, Mar 30, 2008 IP
  7. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Lawlz, Dan, you almost said "the folder is unlocked so feel free to grab the gooey bits"!
     
    Stomme poes, Mar 31, 2008 IP
  8. tones_ie

    tones_ie Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8


    Hay Dan,

    Thank u very much for that...after looking at ure examples and playing around for a lil whil i was able to figure out how to implement it into my page without messing it up !! yeaaaa...

    One question though....im a little confused..ure "image" per link is ONE image?
    [​IMG]

    ive always ever used 2 seperate images or even 3 sometimes....to get the rollover effect...can u explain (in lay mans terms) how the css can use one image...

    thanks again :)
     
    tones_ie, Mar 31, 2008 IP
  9. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #9
    You use the background-position: property on the SPAN to slide the image's position upwards when it's hovered over.
     
    Dan Schulz, Mar 31, 2008 IP
  10. tones_ie

    tones_ie Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    thanks a lot Dan...makes sense now...

    really appreciate the time u took to help me out..:)
     
    tones_ie, Mar 31, 2008 IP