Often I find myself attaching a class to an element just to give it position: relative;
so that I can position it\'s children using position: absolute;
If you apply position: relative
to all elements in the page, you won't be able to use position: absolute
efficiently, because you can't position an element to the grandparent and you will probably break in a unpredictable way external plugins/modules that rely on position: absolute
.
You may encounter problems with z-index
(for example in dropdowns menu), and you'll end up overwriting this behaviour with position: static
and position: absolute
.