Wondering if it's possible to create an overlaid effect with an image and text inside of an <img>
element, similar to the example image below. Utilizing Bootstrap for this design.
This is how I am attempting to achieve it:
HTML
<div class="form-group">
<img id="uploadPreview" class="photo-style">
</div>
<div class="form-group">
<input type="file" capture="camera" accept="image/*" id="id_photo"
name="photo" onchange="PreviewImage();">
</div>
CSS
.photo-style{
display: block;
width: 100%;
height: 325px;
background: lightyellow url(../img/internet-world.png);
margin-left: auto;
margin-right: auto !important;
border-radius: 4px;
}