Click to See Complete Forum and Search --> : Header image into clickable home link


dntel
04-19-2010, 06:28 AM
Is it possible to turn my background image in my header into a link that goes to the home page?

this is my css code:

#header {
background:url("http://worldcupflags.eu/assets/mytemplates/wcf2/images/wcf2_header.jpg") repeat-x scroll 0 0 #004E6C;
border-bottom:1px solid #46A0CA;
border-top:4px solid #003042;
height:157px;
margin:0 auto;
position:relative;
}

I just need it clickable going to home and I only know that in html?

Any ideas? :confused:

Fang
04-19-2010, 10:51 AM
I just need it clickable going to home and I only know that in html?HTML is the way to do it

gauravkhanna28
04-20-2010, 12:21 PM
Please use the below code in HTML <Body> Tag.

<body>

<div id="header" onclick="index.html" style="mouse:hand;">
your text come here...
</div>

</body>

Regards,
Gaurav Khanna

skywalker2208
04-20-2010, 12:29 PM
Please use the below code in HTML <Body> Tag.

<body>

<div id="header" onclick="index.html" style="mouse:hand;">
your text come here...
</div>

</body>

Regards,
Gaurav Khanna

Why would you use javascript when you don't need to use javascript?

Shorts
04-20-2010, 01:38 PM
Indeed, a simple:
<a href="/home" id="header" title="Page title"></a>
Would do, just also add a "display:block;" to your CSS for #header.