-3
<div id="header-logo-image">
    <a href="http://example.com/" rel="home">
        <img src="http://example.com/wp-content/uploads/2016/01/head-logo.png />
    </a>
</div>
#header-logo-image {
    position: absolute;
    top: 0;
    left: 0;
    float: none;
    text-align: center;
    margin-bottom: 10px;
    padding-right: 0;
}
#header-logo-image img {
    width: 60%;
    float: left;
}

The link to my homepage seems to have vanished after moving my logo. When I hover over <a> section it says 0 x 0 for the sizes.

Does making a img smaller or even making it absolute position result in resetting the href link.

As the image is dynamic size, 60% I cannot specify a size in the a section

Mr Lister
  • 45,515
  • 15
  • 108
  • 150
pnumbers
  • 55
  • 1
  • 7

1 Answers1

1

Change your line of code:

<img src="http://example.com/wp-content/uploads/2016/01/head-logo.png" /></a></div>
Legionar
  • 7,472
  • 2
  • 41
  • 70