For all you web development experts out there, I have a question regarding CSS styles. I often see precise pixel or percentage measurements used for properties like "padding" and "height." Experienced developers seem to effortlessly position their content just right, while I struggle with the trial and error process of finding the perfect values for elements on my page. A simple task like centering an element in the middle of the screen can feel cumbersome as I adjust the "padding-left" and "height" values repeatedly until it looks right.
So, do any of you have a rule of thumb or guideline that you follow when deciding between pixel or percentage values for your web pages?