Link on image in css?

windsor

Up-and-Coming Sensation
Joined
Mar 16, 2008
Messages
309
Reaction score
0
FP$
333
Is it possible to have a image in css and put a link on it?...If you get what i mean.
Im editing my styles theme on phpbb and trying to get a image have a link.

Is it possible?
 
No, it's not. You can set a background image on a link but you can't set a link with CSS.

For example, <a href="#" class="class"><span>Home</span></a>
Code:
.class { 
	background-image: url('myimage.gif');
/* more code */
}
.class span {
	display:none;
}
http://www.w3schools.com/css/
 
Ok. What about html image maps if i do it through the template?
How do i find the coordinates do put into the coding?
 
windsor said:
Ok. What about html image maps if i do it through the template?
How do i find the coordinates do put into the coding?
I've only used them once and I used The Gimp to generate it as it was easiest, it's got a nice little built in tool (it's under filters/render/web/image map) for creating them.

May be helpful? http://www.javascriptkit.com/howto/imagemap.shtml
 
Back
Top Bottom