CSS Vertical alignment
CSS Vertical alignment
Out of context: Reply #4
- Started
- Last post
- 7 Responses
- ornj0
Need to know the width and the height, The margins are negative one half of the respective dimention. Works in every browser so far except IE mac, but we've pretty much abandoned that browser for the most part.
div#Main {
position: absolute;
left: 50%;
top: 50%;
margin-left: -375px;
margin-top: -220px;
width: 750px;
height: 440px;
}