• Ian

    (@ian_moore)


    http://www.martinslights.com… since adding the 4 social media buttons direct to the head.php the home button has shifted left and down by a few pixels. I’ve adjusted and experimented with header margins and header img space allocations but nothing seems to correct it. I’ve also tried inserting the code in various places but no change. All else is working as it should.

Viewing 2 replies - 1 through 2 (of 2 total)
  • It looks like you didn’t close your anchor tags. HTML that starts with <a> must end with </a>. The browser can’t find the end of the link code, so it’s replicating the Facebook link until it reaches the first </a> tag, which is in your home menu item. That extra link in the home button is messing with the alignment.

    Try adding </a> to the end of each of your social media links.

    You could run your home page through this tool http://validator.w3.org/ and look for “document type does not allow element “a” here”.

    Thread Starter Ian

    (@ian_moore)

    Thanks mikedev. I found the answer in the style menu li settings. New problem now in making the logo clickable back to the homepage while at the moment it just reopens the page you’re already on! Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Header addition misaligned Home button’ is closed to new replies.