Hi. I know how to center it horizontally, with margin:0 auto, but how do you also center it vertically?
thank you for the feedback. i've googled it and reached the same solution, still, it seems i have some code problems, cause when i place that code it looks like this: http://abhdesign.5com.ro/
You'll probably need to adjust the top margin to something like 40%. You're best just playing around with it until it gets to where you want it.
I'm giving up on this, it doesn't seem like i'll get anywhere with it. Thing is that when i give it position:absolute it sticks to the left side of the screen. Thank anyway.
try the same thing like margin: 0 auto; but make it, keep changing the top settings until you have what you want #div { position: relative; margin: 0 auto; top: 0; }