- 1
HOW TO PUT TEXT FRONT A PICTURE IN HTML?
2 Answers
+ 6
it's a common problem that u ll face while designing, not just text but to put anything over anything, it's called overlaying , I ll just give the basics that ll help everywhere.
the thing that needs to be on background ( in ur case picture ) must have position attribute as relative or fixed if u wish,
now add the overlay element ( in ur case text ) in the same div that contains picture, and give it the position property absolute,
now u can position ur overlay element with attributes like, left, right, top, bottom, z- index etc
note that this relationship of
container{
position: relative;}
overlay{
position: absolute;
z-index:1;}
is very important , only then other stuffs will work,
zephyr koo is right btw , show ur attempt first, then ask questions , it's the wrong way to ask
+ 11
Can you show us what you've tried?
We don't spoon-feed people here and I'm happy to show you the way, just Google "html image text overlay" and you'll find plenty of examples.