As I was attempting to center a div
inside another div
using flexbox
, an inconsistency in rendering between Firefox and Chrome caught my attention.
In the scenario, there are 3 divs, each with properties display:flex
, justify-content:center
, and align-items:center
.
Chrome View: The innermost div appears slightly off-center to the right
rather than perfectly aligned at the center
.
Firefox View: In Firefox, the div is accurately positioned at the center of its parent div.
If you wish to view the code for this issue, you can access it here: https://codesandbox.io/s/nice-pine-q63b5?file=/src/App.js
Firefox version being used: 69.0 (64 bit)
Version of Chrome utilized: 84.0.4147.105 (64 bit)
Operating system in use: MacOS Catalina 10.15.6