Solved

Where is white line coming from

Posted on 2013-12-02
7
187 Views
Last Modified: 2013-12-03
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
0
Comment
Question by:nsitedesigns
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 39690877
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
0
 

Author Comment

by:nsitedesigns
ID: 39691008
If I remove the link, then the header will not link to the index page.
0
 
LVL 43

Expert Comment

by:Chris Stanyon
ID: 39691313
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

0
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 
LVL 35

Expert Comment

by:Dan Craciun
ID: 39691675
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.
0
 
LVL 43

Accepted Solution

by:
Chris Stanyon earned 500 total points
ID: 39691961
The <a> is not the problem - it's the <img> - you'd still get the white line if it was wrapped in a <p> - The answer is to set the <img> as a block level element!!
0
 

Author Comment

by:nsitedesigns
ID: 39692163
Adding display:block;  to header div fixed problem.  Thanks to all who gave suggestions.
0
 
LVL 43

Expert Comment

by:Chris Stanyon
ID: 39692170
I'm sure you meant header image ;)
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

752 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