Jump to content

adding image to link with css


kevwood

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
Share on other sites

first time i have built a site using css.  just been reading up on the rest that is need to be done on the browser settings.  it is now showing how i would like just got to position the text to where i want it to be.

 

thank you for the reply on this.

post-133913-13482403674676_thumb.jpg

Link to comment
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.