I want to make div and its content fit to window and responsive in all devices
The div have a 4k resolution image with image map and also inputbox marked at a specific position in position to the image
I tried many ways all failed
In normal conditions the div dont fit in browser The best I tried scaling by javascript but it only scaled width and that to improperly it did not fit screen
The positions of input box and image map should strictly remain as it is while resizing according to browser screen and while responsive
Currently the page is viewable in full screen properly at 25% in 1360x768 screen.
<style>
body
{
margin: 0;
padding: 0;
}
body
{
overflow: hidden;
}
</style>
<style type="text/css">
.textbox {
display: flex;
border: 1px solid rgb(223, 227, 235);
border-radius: 4px;
padding-left: 8px;
font-family: 'Montserrat', 'Helvetica', sans-serif !important;
font-size: 70px;
color: #333;
font-weight: 600;
}
.textbox:focus {
border-color: #66afe9;
border-style: solid;
border-width: 1px;
outline: 0;
}
</style>
<!DOCTYPE html>
<html>
<div id = wrap>
<img src="https://i.imgur.com/qtZXRjx.png" usemap="#image-map" >
<map name="image-map">
<area target="" alt="Continue" title="Continue" href="continue.php?" coords="2982,1952,3563,1774" shape="rect">
</map>
<input name="user" class="textbox" autocomplete="off" required type="text" style="position:absolute;height:193px;width:1655px;left:1887px;top:1415px;">
</div>
</html>