kevwood Posted August 2, 2012 Share Posted August 2, 2012 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 Link to comment https://forums.phpfreaks.com/topic/266595-adding-image-to-link-with-css/ Share on other sites More sharing options...
Mahngiel Posted August 2, 2012 Share Posted August 2, 2012 your code looks fine. from where your stylesheets are saved on the server, what is the path to the images folder? are you using firebug or any other live code reader? Link to comment https://forums.phpfreaks.com/topic/266595-adding-image-to-link-with-css/#findComment-1366294 Share on other sites More sharing options...
kevwood Posted August 2, 2012 Author Share Posted August 2, 2012 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. Link to comment https://forums.phpfreaks.com/topic/266595-adding-image-to-link-with-css/#findComment-1366314 Share on other sites More sharing options...
kevwood Posted August 2, 2012 Author Share Posted August 2, 2012 all done with some cell padding and text-align. Link to comment https://forums.phpfreaks.com/topic/266595-adding-image-to-link-with-css/#findComment-1366330 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.