Results 1 to 2 of 2

Thread: Background Image on AnyLink anchor

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

    Default Background Image on AnyLink anchor

    1) Script Title: AnyLink Drop Down Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    3) Describe problem: I want to be able to add a background image next to the link but I don't know how to do that. I tried it in the selectedanchor class, but that only displays it when moused over; I want the image to display normally. For any future reference, I am using MyBB and want to add an image like they have done already.

    My URL is http://www.masteremerald.co.cc/ and the dropdown menu is "Links" on the far right. Please help. Thanks.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You should simply style the CSS class of your anchor links, in this case, "menuanchorclass". Perhaps something like:

    Code:
    .menuanchorclass{
    padding-left: 20px;
    background: url('icon.gif') left center no-repeat;
    }
    DD Admin

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
  •