html - Bootstrap navbar spacing issue -
please take @ homepage on website. navbar spacing on place. i'm not sure i'm going wrong code.
i linked bootstrap cdn , have no custom css file of own linked it.
i tried change settings in sublime text 3 change indent using indent rather spaces.
i have re-written code. thing seems work if not put of elements of navbar on new line. no line drops; continuous coding no spaces.
any appreciated.
thank you.
my html:
<div class="navbar navbar-inverse navbar-static-top"> <div class="container"> <a href="/" class="navbar-brand">kellumonline</a> <button class="navbar-toggle" data-toggle="collapse" data-target=".navheadercollapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <div class="collapse navbar-collapse navheadercollapse"> <ul class="nav navbar-nav navbar-right"> <li class="active"><a href="/">home</li> <li><a href="tech/">tech</li> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="gaming/">gaming <i class="caret"></i></a> <ul class="dropdown-menu"> <li><a href="#">agginayr</li> <li><a href="#">xb1</li> <li><a href="#">ps4</li> <li><a href="#">android</li> </ul> </li> <li><a href="skate/">skate</a></li> <li><a href="contact/">contact</a></li> </ul> </div> </div> </div>
your issue not closing tag's in list groups. looking @ html have following:
<ul class="nav navbar-nav navbar-right"> <li class="active"><a href="/">home</li> <li><a href="tech/">tech</li> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="gaming/">gaming <i class="caret"></i></a> <ul class="dropdown-menu"> <li><a href="#">agginayr</li> <li><a href="#">xb1</li> <li><a href="#">ps4</li> <li><a href="#">android</li> </ul> </li> <li><a href="skate/">skate</a></li> <li><a href="contact/">contact</a></li> </ul>
your html looks this:
<li class="active"><a href="/">home</li>
you should have:
//added closing tag a: </a> <li class="active"><a href="/">home</a></li>
using header code:
<div class="navbar navbar-inverse navbar-static-top"> <div class="container"> <a href="/" class="navbar-brand">kellumonline</a> <button class="navbar-toggle" data-toggle="collapse" data-target=".navheadercollapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <div class="collapse navbar-collapse navheadercollapse"> <ul class="nav navbar-nav navbar-right"> <li class="active"><a href="/">home</a></li> <li><a href="tech/">tech</a></li> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="gaming/">gaming <i class="caret"></i></a> <ul class="dropdown-menu"> <li><a href="#">agginayr</a></li> <li><a href="#">xb1</a></li> <li><a href="#">ps4</a></li> <li><a href="#">android</a></li> </ul> </li> <li><a href="skate/">skate</a></li> <li><a href="contact/">contact</a></li> </ul> </div> </div> </div>
Comments
Post a Comment