silly question, but I can\'t find answer on it as all answers assume centering div in terms of width.
What I need is to center div in means of height and width so in a v
position: absolute; left: 50%; top: 50%; margin-left: -250px; /*(half of width)*/ margin-top: -250px; /*(half of height)*/
that should work.