DEV Community

Discussion on: Positioning a text over an Image using CSS / HTML

Collapse
 
bce_merde profile image
*******

is it easier to place text over an image to place on the site or jsut placing the image as bg and then the text on a top layer?

Collapse
 
devhammed profile image
Hammed Oyedele

Using image as backgrounds sometimes would not show some part of the image, so in that case overlaying text is the solution.

Collapse
 
yevgalis profile image
yevgalis • Edited

It depends on a situation. But in the example above I would've used image as a background for <div class="content">