I have created a web page that works perfectly fine in Chrome and Firefox without zooming. However, when I zoom in Firefox, the layout breaks (even though it works fine in Chrome). You can view the live version.
Here is how it appears in Firefox:
https://i.sstatic.net/D2tNw.png
But when zoomed in, it changes to this:
https://i.sstatic.net/TjDuN.png
Below is the CSS code used in the creation of this webpage:
body {
font-family: sans-serif;
}
#format_as_code {
font-family: "Lucida Console", monospace;
font-size: 12px;
white-space: pre;
width: calc(80 * 7.2px);
background: #111111;
color: #eeeeee;
height: calc(24 * 14.5px);
display: block;
}
h1 {
text-align: center;
}
#center {
margin-left: auto;
margin-right: auto;
width: calc(80 * 7.2px);
}
Any suggestions on what could be causing this issue?