Darken Image Overlay And Add Text Over It In CSS
How would I darken (add a semi-transparent overlay) and add text to this image (but centred horizontally and vertically) as below: HTML
;
width:1px; height:100%;
vertical-align:middle;
display:inline-block;
}
.text span{
display:inline-block;
vertical-align:middle;
}
<div class="wrap">
<img src="http://luxurylaunches.com/wp-content/uploads/2014/05/uber-london.jpg" id="top" data-appear-animation="fadeIn" />
<div class="text"><span>Text over the image
<br/>Second line</span></div>
</div>
Post a Comment for "Darken Image Overlay And Add Text Over It In CSS"