Questions
MiuraMiuraasked 4 months ago
I want to add a form on to an image with CSS.
1

1 Answers

Accepted
codegenlabcodegenlabanswered 4 months ago
Add a form to a full-width image with CSS.
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<style>
#image-container {
    width: 100%;
    height: 500px;
    background: url(https://www.pngkey.com/png/full/98-981539_bg-announcing-text-bg-png.png);
}
#form-container {
    width:350px;
    margin: 30px auto 0 auto;
}
</style>
<body>
     <form id="image-container">
         <div id="form-container">
         </div>
     </form>
</body>
</html>
1