css - Removing white space between Divs - help me restructure code -
i have 2 divs want merge website header. want them both black , have no white space in between. please advise. - recommend how write code? im using container class don't have 1 in css - bootstrap default or something?
thanks! see below
<div class="nav"> <div class="container" style="background-color: #000000;> <ul class="pull-left"> <li><a href="#">home</a></li> <li><a href="#">about us</a></li> </ul> <ul class="pull-right"> <li><a href="#">portfolio</a></li> <li><a href="#">pricing</a></li> <li><a href="#">contact</a></li> </ul> </div> </div> <div style="background-color: #000000;" class="container" > <div><img src="http://www.part-box.com/images/yf.png" height="auto" width="400"></div> </div>
if want merge 2 no space in between put image tag within first div. easiest solution, want far interpret request.
like this:
<div class="nav"> <div class="container" style="background-color: #000000;"> <ul class="pull-left"> <li><a href="#">home</a></li> <li><a href="#">about us</a></li> </ul> <ul class="pull-right"> <li><a href="#">portfolio</a></li> <li><a href="#">pricing</a></li> <li><a href="#">contact</a></li> </ul> <img src="http://www.part-box.com/images/yf.png" height="auto" width="400"> </div> </div>
Comments
Post a Comment