1
I’m using Bootstrap 3 and I have a div like this:
<li class="col-md-3">
<img src="image.jpg" alt="Example" />
<div style="position: absolute; width: 100%; height: 100%; ">
<span style="position: absolute; widht: 100%; height: 100%; padding-left: 15px; padding-right: 15px; background-color: #000">
<p>Teste</p>
<button type="button" class="btn btn-success">Clique Aqui</button>
</span>
</div>
</li>
I wish that span
had the background only in the padding, as it has in the col-Md-3, so that the background was only in the image.
I tried some ways but I couldn’t, does anyone have any idea?
Ever tried using borders? border-left: 15px; border-right: 15px; border-color: Solid #000;
– morphinduction
@xmdenis tried here now but, did not solve
– Caio Gomes