javyboy Posted July 23, 2008 Share Posted July 23, 2008 Ok so now that I just put an image for the main page of my site, and i want to make it as a hyperlink that once u click you can acsse the rest of the page like the main menu. Im working atm with <html><head><style type="text/css">body{ background-image:url('http://i34.tinypic.com/2ryrsl2.jpg');background-repeat:no-repeat;background-attachment:fixed;background-position:center; background-color:black;}</style></head></html> for the first part but now the image i wnt to make it hyperlink, so, do I need to put <a href="lastpage.htm"><img border="0" src="http://i34.tinypic.com/2ryrsl2.jpg" width="65" height="38"></a> were background-image: (link here);shopuld be or what? Link to comment Share on other sites More sharing options...
justsomeguy Posted July 23, 2008 Share Posted July 23, 2008 You can't make a background image a link. You would need to create something else for the link, like a transparent image that you stretch or even just an anchor tag with no content where you use CSS to make it fill the screen size. You could make the image the background image for the anchor tag as well. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.