Amrit Dhillon
Amrit Dhillon

Reputation: 1

How to make my header logo clickable when using % for the logo in css

I wonder how I can make the header logo on a website that I'm working on clickable while using percentages in the css for the logo. I want to do this without getting rid of the percentages in the css. The website is www.madebyrob.nl.

Upvotes: 0

Views: 170

Answers (2)

M.Matias
M.Matias

Reputation: 107

It's because of z-index: -1; you have on your style.css.

Try removing that under #logo and you will have your link working properly.

#logo {
    float: none;
    width: 30%;
    position: fixed;
    z-index: -1; /*remove this*/
    top: 0;
    left: 33%;
}

Upvotes: 1

paradizzee
paradizzee

Reputation: 111

Can you describe clickable?

If you want it to be a link you can just do the following:

<a href="">
    <img src="" />
</a>

Percentage won't matter

Upvotes: 0

Related Questions