Reputation:
How can I remove the additional space between the nav banner and the main banner image below it?
I removed the padding and margin, but nothing is working.
My code is below.
I don't want to set positions. Can anyone tell me what the problem is?
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar collapsed" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#" style="padding-top: 0px;">
<img alt="change" class="defieLogo" src="http://www.defie.co/designerImages/defie_logo_only.png">
</a>
<div class="nav-collapse collapse" style="height: 0px;">
<ul class="nav">
<li class="active"><a href="http://v2.defie.co/product.html">Product</a></li>
<li><a href="http://v2.defie.co/solution.html">Solutions</a></li>
<li><a href="/docs/examples/service.html">Services</a></li>
<li class="iphonePartnerLink"><a href="/docs/examples/partner.html">Partners</a></li>
<li class="iphoneContactLink"><a href="/docs/examples/contact.html">Contact</a></li>
</ul>
<ul class="nav" id="navSecond">
<li class=""><a href="/docs/examples/partners.html">Partners</a></li>
<li><a href="/docs/examples/contact.html">Contact</a></li>
</ul>
<form class="navbar-form pull-right">
<input class="span2" type="text" placeholder="Email">
<input class="span2" type="password" placeholder="Password">
<button type="submit" class="btn">Sign in</button>
</form>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<header class="hero-unit-product">
<h1>
Defie Cloud Business Solutions
<small>.. changing the way businesses operate.</small>
</h1>
<p><a class="btn btn-green btn-large" href="/signup/" data-link="modal" data-target="#signup-modal">Register</a></p>
</header>
</div>
Upvotes: 1
Views: 294
Reputation: 125620
The main problem is connected with <article class="container">
element - it has margin-top: 30px;
.
You also have to change padding-top
for .home
selector. It's set to 55px
now, but has to be 47px
instead.
Upvotes: 2
Reputation: 18452
The space is coming from:
.home article.container {
margin-top: 30px;
}
Change it to:
.home article.container {
margin-top: 0;
}
Upvotes: 2