Home Ask Login Register

Developers Planet

Your answer is one click away!

Shimon Revivo February 2016

html style text over image

I want to put text over a picture,

I need to change the text box size (so it would be in the same size of the background picture)

I need to be able to change the text font, size, color.

Thanks for your help


Saad Mirza February 2016

THere are many ways to do it,But simpler one is give below

<div style="background-image:url('images.jpg'); ">
    <h1 style="font-size:17px; color:yellow;">Hello word</h1>

Post Status

Asked in February 2016
Viewed 3,166 times
Voted 9
Answered 1 times


Leave an answer

Quote of the day: live life