Skip to content

Instantly share code, notes, and snippets.

@plavet
Created October 7, 2012 15:39
Show Gist options
  • Save plavet/3848702 to your computer and use it in GitHub Desktop.
Save plavet/3848702 to your computer and use it in GitHub Desktop.
CSS - Vertical align
#kutija{width:100%;height:100%;}
#vertical{/*vertical centering*/
width: 1124px;
height: 616px;
position: absolute;
top: 50%;left: 50%;
margin-top: -308px; margin-left: -562px; /* negativna margina upola da bi centar funkcionisao vertikalno */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment