Chrome: https://i.stack.imgur.com/Ob1E9.jpg Firefox: https://i.stack.imgur.com/8bdw5.jpg
Well, I only have a <div>
in my <body>
, here's the code:
<body>
<div id="wrapper"></div>
</body>
Together with some simple styles:
#wrapper
{
width: 692px;
height: 100px;
outline: 1px solid green;
margin: 10px auto;
}
When opening "Inspect element" in Google Chrome, I have a weird values with numbers after decimal point for both width
and margin
in the box-model (691.989 for width
and 373.281 for margin
). This issue however doesn't occur in FireFox.
Providing pictures below:
Could someone please explain to me why this occurs and how can I fix this? It's rather annoying when you add more divs
and the widths
are all over the place. Thanks!