Solved

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

Posted on 2013-05-10
2
373 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

856 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