html - Keep background-color while overlapping a picture -


how can overlap

	<p style="background-color:red; width:168px; padding:10px; margin-top:-168px;" class="kasten">

this p tag on picture , keep background-color:red?

because background gets transparent when overlaps picture...

thanks answers!

cheers, till

instead of margin-top, try using:

position: relative; top: -168px; 

see: https://codepen.io/anon/pen/prvwvo


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

Ansible warning on jinja2 braces on when -

html - How to custom Bootstrap grid height? -