Hey guys, see this following coding There is a image logo2.png I want it to add hyperlink to the image .. but i am not able to do it.. plz help me <td background="{THEME}/images/logo2.png"></td> PHP: help me
or try this code: <td background="{THEME}/images/logo2.png"><a style="display:block;" href="#">&nsp;</a></td> Code (markup):
It follows the same idea in a basic html page. That is <a href=""><img src=""></a> Code (markup): Keep it simple stupid (kiss).
Do not use tables for site layout at all and you won't have problems like that. Tables are for data, CSS for layout
First, why are you using tables? Rather than putting the logo in as a background image, put the logo image on the page and wrap it in the <a> tags. If you do that, make sure that the image has proper alt text.
Hi, here is the code you can use <td ><a href="google.com"><div class="background"></div></a></td> .background { background:url(../images/back.jpg) no-repeat; height:220px; width:220px; }