Link to home
Start Free TrialLog in
Avatar of nsitedesigns
nsitedesignsFlag for United States of America

asked on

Where is white line coming from

Where is the white border coming from that appears above the nav bar?   I looked everwhere and I cannot locate it.

http://nsitedesigns.com/nsitedesigns/city/index.html
Avatar of Dan Craciun
Dan Craciun
Flag of Romania image

It's the link (<a href="index.html"). Replace that with a <p> and the white space is gone.

put display:block on the a style and you're set.

HTH,
Dan
Avatar of nsitedesigns

ASKER

If I remove the link, then the header will not link to the index page.
You need to set the header image to display as a block level element. Add this to your CSS:

img.header { display:block; }

Open in new window

I meant you can prove the <a> is the culprit  by replacing it with a <p>, which will remove the white line.

Once we know the problem, we can work toward a solution. Which is to set display:block either on the <a> element or on the image.
ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Adding display:block;  to header div fixed problem.  Thanks to all who gave suggestions.
I'm sure you meant header image ;)