Jump to content

How to link background img


Recommended Posts

Ok here is what i did: i wanted to put image in place where blocksearch module was. I didnt knew how so i modyfied blocksearch module, cut all of code and replaced background image in css code.

 

Now i have image in place i wanted BUT there is a problem because i want to link this image and dont know how, because this image is as background image in css so it cant be linked. I need to use some trick..

 

I've attached picture, the place with text "EKSPERTYZA NASZYCH WLOSOW" is the image that i want to link. But like i said this is background image from css.

 

Any ideas ?

post-264231-0-61914900-1326540754_thumb.jpg

Link to comment
Share on other sites

here are details:

 

code of blocksearch module, i've cut it (blocksearch-top.tpl) to this:

 

<!-- Block search module TOP -->
<div id="search_block_top"></div>
<!-- /Block search module TOP -->

 

and code from CSS:

 

/* blocksearch-top.tpl  */
div#search_block_top {width:320px;height:32px;background:url(../img/ekspertyza-wlosow-clip-in.png) 0 0 no-repeat;position:absolute;right:0px;top:122px;}

 

this cause that i have image in proper place of my home page and this is fine but i need to link this image, i need to do some trick to make this work..

Link to comment
Share on other sites

×
×
  • Create New...