Getting Image to Appear in Drop-down Menu

Discussion in 'CSS' started by Borduhh, Nov 10, 2010.

  1. #1
    Hello All,

    If you go to my website (http://www.outplaypoker.com). I am trying to get the first <li> of the dropdown menu to have the background image "navFirst.png". However with my many attempts I cannot simply get it to work.

    I was wondering if any experts here could give me a helping hand?

    Best Regards,
    Nick
     
    Borduhh, Nov 10, 2010 IP
  2. shahilroyhere

    shahilroyhere Well-Known Member

    Messages:
    189
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    130
    #2
    Though there are many ways to do it, I will like to suggest one which is also independent of JS.
    Put a class for that 1st <li>s in the menu and then give a background image for that class with some padding left or right as you wish.
     
    shahilroyhere, Nov 11, 2010 IP
  3. Rimona

    Rimona Active Member

    Messages:
    123
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    63
    #3
    I have made a menu like this some time ago without JS.

    See: http://dgcomex.com/

    Look at the CSS file, all the menu related elements start with .menu

    If you need more help, PM me.
     
    Rimona, Nov 11, 2010 IP
  4. Borduhh

    Borduhh Well-Known Member

    Messages:
    767
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    150
    #4
    Guys, Thanks for the turtorials. However I already have the menu made, and the image implemented, I am just having some trouble as to why it is not showing up. It is on my website Outplay Poker.
     
    Borduhh, Nov 11, 2010 IP
  5. adelaide

    adelaide Active Member

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    Digital Goods:
    1
    #5
    Did you mean to replace text using images? you can use text-indent property. it must be specific in class or ID.

    .class {text-indent:-9999px;}
    Code (markup):
    and use it as..

    <li class="class"...
    Code (markup):
     
    adelaide, Nov 11, 2010 IP
  6. →» ρяιη¢є «←

    →» ρяιη¢є «← Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Good Response Friends ............