treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Targeting active nav ul li ?

  • Hi there, I am trying to target a single nav ul li bullet for my site. At the moment I have no bullets showing: nav ul {list-style-type:none;}

    But I cannot target the bullet to put in a image for the active link (the page they are on): nav ul li a.active{background:url('bullet.png'); margin-left:-1%; text-indent:1%;}

    Please help!

  • list-style-image: url('something.png');

  • I'd love to help, but you give nothing to go on. Do you have a link, a pen, more code?

  • .nav ul li a.active {
    background-image: url('image.png');
    background-repeat: no-repeat;
    text-indent:=> than image width;
    }