html - Bootstrap - remove background from navbar link -


i'm trying work on coding website using bootstrap development kit. i've set navigation bar couple of links i'm having trouble custom links i've added. added css bootstrap.min.css file titled 'navbar-social', used house social media icons navigation bar.

i added images fine , display great. problem i'm having when add link them go out of line , hovering on them gives them background box not want.

i've attached screenshots , code used, cannot life of me work out background box coming from, because checking styles doesn't seem have there. i'm new css apologise if i'm missing obvious.

none linked: http://prntscr.com/2ob9mj

linkedin not linked, rest linked: http://prntscr.com/2ob2b2

css code added bootstrap.min.css. rest comes:

.navbar-social{ float:right !important; padding:5px; font-size:18px; line-height:37px; height:20px } 

html: (a href removed in case)

<nav class="navbar navbar-default navbar-static-top" role="navigation">         <div class="container">              <div class="navbar-header">               <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">                 <span class="sr-only">toggle navigation</span>                 <span class="icon-bar"></span>                 <span class="icon-bar"></span>                 <span class="icon-bar"></span>               </button>               <a class="navbar-brand" href="">removed</a>             </div>              <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">                 <ul class="nav navbar-nav">                     <li class="active"><a href="">about</a></li>                     <li class="dropdown">                       <a href="#" class="dropdown-toggle" data-toggle="dropdown">programming <b class="caret"></b></a>                       <ul class="dropdown-menu">                         <li><a href="#">java</a></li>                         <li><a href="#">c++</a></li>                         <li><a href="#">actionscript 3.0</a></li>                       </ul>                     </li>                     <li><a href="">web design</a></li>                 </ul>                 <ul class="nav pull-right">                     <li class="navbar-social"><img src="images/linkedin.png" alt="linkedin" /></li>                     <li class="navbar-social"><img src="images/github.png" alt="github" /></li>                     <li class="navbar-social"><img src="images/twitter.png" alt="twitter" /></li>                     <li class="navbar-social"><img src="images/facebook.png" alt="facebook" /></li>                 </ul>             </div>         </div>     </nav> 

thanks all!

bootstrap adds styling child a elements. overwrite using following:

working example here

.nav .navbar-social > {     padding:0; } .nav>li>a:hover, .nav>li>a:focus {     background-color: transparent; } 

Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -