like i ve an image (logo img) and which is coming through css . can i give link to that image so that when ever i click on that it ll take me to that respective link. i dont want to java script like onclick etc.
@lohumihemauthorOct 17.2007 — #Turning an image into a link is VERY easy.
<a href="URL"><img src="ImageURL" alt="logo"></a> It is as simple as that. If you don't want a border around your image, add this to your CSS rules:
[CODE]a img{border:0;}[/CODE][/QUOTE]
NO i mean like this i ve one image which is coming throgh css. As it is coming through css then it ll be bg image and i cant nt give link to bg images( as far as i know)
so it there any property in css like below
.logo{background-image:url(../images/logo.gif)[COLOR="Red"]" can i write some property HERE which ll jump me to any given link"[/COLOR]}
@Mr_Initial_ManOct 18.2007 — #You'll run into validation problems with WebJoel's method; <div> does NOT belong in <a> But you made a minor mistake in cursor: It is [b]cursor: pointer;[/b].
@lohumihemauthorOct 18.2007 — #You'll run into validation problems with WebJoel's method; <div> does NOT belong in <a> But you made a minor mistake in cursor: It is [b]cursor:pointer;[/b].[/QUOTE]
Hey cursor:hand; also work i got this form google it self, BUT i am not going to use it coz i m trying your method,and ie doesnt create any problem for this.
@WebJoelOct 18.2007 — #"cursor:hand;" is IE-proprietory, going back to IE5.x. If you expect to have users of IE5.x visiting your site, you can write your cursor declarations this way:
"[B]cursor: pointer; cursor: hand;[/B]"
The order here is significant, as IE5.x will choke if "pointer" comes [I]last[/I]... It ignores "pointer", and compliant browsers ignore "hand"..