Solved

Wordpress custom theme: mysterious additional height (2px) in header

Posted on 2013-05-10
2
372 Views
Last Modified: 2013-05-10
Hey experts --

So, I'm plugging away at building a really minimal theme for a client, and right here at the start I've got a gremlin.

URL: http://sullivanandco.com/wr-test/

As you can see, I have an anchor tagged image in the header, 286px by 64px, but the header itself (which is nothing BUT the image) is displaying as 66px.

I've got normalize and reset CSS that's supposed to wipe out things like that. NO idea where it's coming from. Any guesses?

500 points for speed (maybe difficulty, who knows) -- thanks in advance!
0
Comment
Question by:amateur6
2 Comments
 
LVL 30

Accepted Solution

by:
LZ1 earned 500 total points
ID: 39156425
Give the anchor a class or ID, then display it as block with a width and height:
 display: block;
    height: 64px;
    width: 286px;

Open in new window

0
 
LVL 1

Author Closing Comment

by:amateur6
ID: 39156506
Thanks LZ1! Beautiful.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question