How to create a form in html with an image in background ?

Active June 12, 2019    /    Viewed 8241    /    Comments 0    /    Edit


Example of how to create a form in html with an image in background (the form position can be changed using the position parameters left: 100px; top: 250px; )

How to create a form in html with an image in background ?

<!DOCTYPE html>
<html>
<body>
<form style="position: relative;" method="GET" action="">
    <img src="Lenna.png"  />
    <div style="position: absolute; left: 100px; top: 250px;"> 
       <input type="text" placeholder="Texte..." /> <br><br>
       <input type="text" placeholder="Texte..."/> <br><br>
       <button type="submit">Go</button>
    </div>
</form>
</body>
</html>

References

Links Site
Exemple jsfiddle
HTML form within an image stackoverflow
How to put a background image on a Bootstrap form? stackoverflow
Full Page Log In With Background bootsnipp
Exemple bootply


Card image cap
profile-image
Daidalos

Hi, I am Ben.

I have developed this web site from scratch with Django to share with everyone my notes. If you have any ideas or suggestions to improve the site, let me know ! (you can contact me using the form in the welcome page). Thanks!



Did you find this content useful ?, If so, please consider donating a tip to the author(s). MoonBooks.org is visited by millions of people each year and it will help us to maintain our servers and create new contents.

Amount