How can I get an image to be set as a background in an element of my navbar
?
I've tried it this way.
<nav class="navbar navbar-default navbar-inverse " >
<div id="navigation">
<ul class="nav nav-pills">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" >
<h4 >MENU <b class="caret"></b></h4>
</a>
<ul class="dropdown-menu" >
<li class="dropdown-header" ><a href="#" ><h4>PRODUCTOS</h4></a></li>
<li class="divider"></li>
<li><a href="pacas.html"><h4>Pacas Credenciales</h4></a></li>
</ul>
</li>
<li role="presentation" ><a href="locacion.html"><h4> LOCATION</h4></a></li>
<li role="presentation" ><a href="dama.html"><h4> CONTACTANOS</h4></a></li>
<li role="presentation" ><a href="index.html" class="a"><h4 class="h"><img class="imagen" src="assets/images/home.png"></h4></a></li>
</ul>
And this is my code CSS
:
.imagen{
margin: 0;
display:inline-block;
height: 18px;
float:none;
}
But the image does not cover the entire element as it is displayed like this.
I wish that all this picture is the image of the Home icon and not that the image looks so small, I tried to play with the size of the image but I can not adapt it because if I increase the image size is distorted and becomes bigger than the other elements, any suggestions? I'm using