After creating a marksheet generator, I noticed that the divs positioned over an image on the resulting page are not responsive when trying to print. The print preview ends up looking strange and distorted. How can I make these already positioned divs responsive?
Specifically, how can I adjust the following HTML to be responsive? HTML
#name {
position: absolute;
top: 17.4%;
left: 31%;
}
#cl {
position: absolute;
top: 18%;
left: 58%;
}
<div id="name">
<font size="3" face="courier new"><b><%out.print(name);%> </b></font>
</div>
<div id="cl">
<font size="2" face="courier new"><b> -<%out.print(cl);%></b></font>
</div>