html - CSS block on top of image -


i trying create this(without blue lines): enter image description here

the grey picture have insert , letters must displayed above.

i've tried on own can't

put <img> tag div wrapper, put second div into first 1 (after img), write text div , use css rules like

.my_div_wrapper {   position: relative;   width: 300px; } .my_image {   width: 100%; ) .my_text_over_image {   position: absolute;   bottom: 20px;   height: 50px;   color: white;   background: rgba(0, 0, 0, 0.5); } 

the important thing absolute position. last number in background setting opacity of background color. choose color , opacity (and else) desired).


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -