Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

center css

div.container4 {
    height: 10em;
    position: relative }
div.container4 p {
    margin: 0;
    background: yellow;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%) }
Source by www.w3.org #
 
PREVIOUS NEXT
Tagged: #center #css
ADD COMMENT
Topic
Name
1+4 =