I have search through the forum looking for a solution to my problem to no avail. I have two spaces (gaps) in my test site which I can not seem to get rid of. You can view the example at the following address: http://nvisionarydesign.com/test The first is above my navigation and the second is just below the main picture. I would appreciate your help regarding this issue.
Here is my xhtml code:
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\">
<h1 class=\"how-replace\"> <a href=\"#\"> <img src=\"images/how-we.jpg\" alt=\"How We Can Help:\" /> </a> </h1> </div>
<div id=\"page-wrap\">
<div id=\"main-content\">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p> </div>
#nav { height: 30px; } #nav ul { list-style: none; } #nav ul li { display: inline; } #nav ul li a { display: block; height: 30px; float: left; text-indent: -9999px; border: none; } #nav ul li a.home { width: 433px; background: url(images/nav-home.jpg) bottom no-repeat; } #nav ul li a.studio { width: 85px; background: url(images/nav-studio.jpg) bottom no-repeat; } #nav ul li a.blog { width: 85px; background: url(images/nav-blog.jpg) bottom no-repeat; } #nav ul li a.services{ width: 85px; background: url(images/nav-services.jpg) bottom no-repeat; } #nav ul li a.showroom { width: 85px; background: url(images/nav-showroom.jpg) bottom no-repeat; } #nav ul li a.contacts { width: 182px; background: url(images/nav-contacts.jpg) bottom no-repeat; } #nav ul li a:hover { background-position: center; } body#home #nav ul li a.home, body#studio #nav ul li a.studio, body#blog #nav ul li a.blog, body#services #nav ul li a.services, body#showroom #nav ul li a.showroom, body#contacts #nav ul li a.contacts { background-position: top; }
Thank you soap and johnleigh for your solutions. I ended up using the #header img{diplay:block;} solution and it work perfectly. Thank you both for your time and knowledge. Pauler
I just wanted to say THANK YOU for this answer!!! The #header img{display: block} just worked for me with an assignment I have been working on for a week now :) Thanks
Here is my xhtml code:
Here is my CSS:
Thank you in advance,
Pauler
I would recommend simply to declare the header image as "block" like this below:
#header img{display:block;}
This should sort you out
cheers!
Pauler