Put a link on a fixed position header.

amandine / 2012-11-04 14:35:09   

Hi
I tried to put a link on my header which has a fixed postion.
I put those codes:
on my index.php


shockinghorses.com">

and on my style.css:

#header { position: fixed;
background: url('shockinghorses.com/files/gimgs/…')no-repeat center center;
height: 84px;
width: 100%;
top: 35px;
left: 0px;
z-index: 9999; }

Then my logo appears twice( one is a link but not with the right size, the oher one is not a link but appears with the right size)
I would like to know what's wrong with my code? I tried to find/change things, nothing is working
Thanks for your help!
shockinghorses.com/

amandine / 2012-11-04 14:37:26   
I meesd up with codes
index.php



style.css
and on my style.css:

#header { position: fixed;
background: url('shockinghorses.com/files/gimgs/…')no-repeat center center;
height: 84px;
width: 100%;
top: 35px;
left: 0px;
z-index: 9999; }

arsondpi / 2012-11-04 18:30:22   

I viewed your code. Obviously the following is wrong...

  1. <img src="header"/>

Use a url address.

amandine / 2012-11-04 19:38:44   

Thanks;
But when I put a Url adress, it's even worst; I just did and you can see the mess...

arsondpi / 2012-11-04 19:47:54   

I'm not sure of what you're trying to do... You already have your logo there...

Anyhow - apart from the correct url you need to set width, height and alt properties.

amandine / 2012-11-04 19:49:59   

I just want to put a link on my logo to send le back to my home page and until now it's not working...

amandine / 2012-11-04 20:05:33   

I will figure out, thanks for your help anyway

This thread has been closed, thank you.