Jump to content

Recommended Posts

hi

  i am trying to add a background image to my links in a list on my page but i cannot get the image to show how i would like.

 

  i am either going about it the wrong way or it simply cannot be done how i would like.  either way here is the code that i am using at the min

 

#P_navigation li{
list-style-type : none;
margin : 0;
margin-left : 0;
background : url(../images/buttons/main_link_bg.png)-50px -15px no-repeat;
width : 192px;
height : 50px;
}

 

i will attach an image of what it is doing and one of the image i am trying to display

post-133913-13482403672449_thumb.jpg

post-133913-13482403672696_thumb.png

Link to comment
https://forums.phpfreaks.com/topic/266595-adding-image-to-link-with-css/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.