This is the checkbox hack: https://css-tricks.com/the-checkbox-hack/
My question is why "hide" the checkbox by positioning it off the page, as shown in the example on CSS Tricks:
position: absolute;
top: -9999px;
left: -9999px;
Why not just do:
display: none;
The answer at How does css checkbox hack work? says:
"Hiding the checkbox through
display:none
could cause buggy behavior on certain browsers. Just hiding it from view by aposition: absolute
is safer."
Which browsers? And are there any drawbacks with using absolute position to place an element off the page? To be more specific, are there any drawbacks with using absolute position to place an input off the page?