Hello to evreyone, this is my first post,
I create this topic in case to write down some question i have during a project i made right now, may is simple question but this will help me to learn the HTML and PHP language.

My question i want to add an image behind objects. Like on Facebook there is a blue color image behind the login items. How can i add an image behind a textbox?
Thanks.

Recommended Answers

Use the <div> tag.

<div style="background-image:url(LINK_TO_IMAGE);width:WIDTH_OF_IMAGE;height:HEIGHT_OF_IMAGE">
<input_here>
</div>
Jump to Post

All 2 Replies

Use the <div> tag.

<div style="background-image:url(LINK_TO_IMAGE);width:WIDTH_OF_IMAGE;height:HEIGHT_OF_IMAGE">
<input_here>
</div>

its not an image, its a css style

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.