Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

text-align:center apply to parent div or child div

.parent {
    width: 100%;
    border: 1px solid blue;
    text-align: center;
}

.child {
    display: inline-block;  
    border: 1px solid red;
    margin: 2px;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #apply #parent #div #child #div
ADD COMMENT
Topic
Name
3+9 =