Here's the code I'm working with:
div#myImg{
background: url('myimage.png') left top no-repeat;
}
div#myImg:after{
content: 'TEXT UNDER IMAGE';
margin:0 auto;
vertical-align:text-bottom;
font-size: 14px;
}
.dm_lp_imgs{
width: 100px;
float:left;
height: 115px;
margin-right: 15px;
}
<div id="myImg" class="lp_imgs"></div>
I understand that you can use the :after pseudo selector to add text, but my goal is to position it centered just below the image. Is this achievable using the :after pseudo selector?
Currently, the text appears stuck at the top of the div#myImg element.
UPDATE:
display:block
Adding this line didn't solve the issue...