I am designing a login page in which requirement is to use background image instead of css style sheet. I had placed login page designed image in center, now i want to set textbox and login button above image. Cuurenly i had done it but when ever browser dimension change the textfield also move. How can i fix it even if i open it on any device.
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.container {
position: relative;
}
.text-block {
position: absolute;
top: 238px;
left: 307px;
color: white;
}
</style>
</head>
<body>
<div align="center" class="container">
<div class="text-block">
<input type="text" style="width: 300px;">
</div>
<img src="g1.png" align="middle">
</div>
</body>
</html>