Jump to content

Recommended Posts

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

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

Join the conversation

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

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...