StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   How can I make a background image a link on the homepage (http://www.studiopress.com/support/showthread.php?t=102743)

gina-cc 05-09-2012 09:13 AM

How can I make a background image a link on the homepage
 
I need to make the main graphic on http://www.cohnmoscarelli.com/ (eye w/ Learn more banner) clickable. the graphic is a background image

CSS:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#home-top {
background: url("images/home-top-bg.png") no-repeat scroll 0 0 transparent;

color: #808285;

height: 376px;

margin: 0;

overflow: hidden;

padding: 0;

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


the image should link to: http://www.cohnmoscarelli.com/cohn-m...joins-findlaw/



how can I do this?
Thanks for the help!

NicktheGeek 05-09-2012 10:05 AM

background images cannot be turned into links. You can add a link and set that to have a background image.

gina-cc 05-09-2012 12:46 PM

how do I do that?

NicktheGeek 05-10-2012 08:34 AM

you have to add a link to your site with a unique class or ID you can target, then you use CSS to set it to display block and have specific height and width as well as the background you want.


All times are GMT -5. The time now is 02:43 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.