I am trying to center a div on page, but its not working.
I need to use Position: Relative on the style of the div, because if I don't use it, the entire div won't appear on page!
Here is the style right now:
#page-wrap {
width: 720px;
margin: 0 auto;
position: relative;
z-index: 300;
background: rgba(0,0,0,0.7);
overflow: hidden;
padding: 30px 50px;
border-left: 10px solid rgba(255,255,255,0.2);
border-right: 10px solid rgba(255,255,255,0.2);
}
The div is appearing on the top of the page, centered horizontally, but I want to center it vertically...
How can I do it?
Thanks alot in advance ;)