I have the following problem that I think is best explained with the code. The same is:
ul.header
{
width: 100%;
overflow: hidden;
background: #F4F4F4;
border: 1px solid #7C7C7C;
list-style: none;
margin: 0;
padding: 0;
}
ul.header li
{
float: left;
border-left: 1px solid #FFF;
border-right: 1px solid #7C7C7C;
color: #333;
display: inline-block;
padding: .3em;
text-decoration: none;
}
.mi-imagen
{
height: 120px;
width: 120px;
}
<body>
<ul class="header">
<li class="col-md-4">
<img src="imagen.jpg" class="mi-imagen">
li con imagen
</li>
<li class="col-md-4">
un li
</li>
<li class="col-md-4">
otro li
</li>
</ul>
</body>
My drawback is that the last <li>
never fits the size of <ul>
, then I have a smaller edge and it does not look good. I would like to see if someone can help me to realize where the problem is or how to solve it.