text align 3acenter apply to parent div or child div

Solutions on MaxInterview for text align 3acenter apply to parent div or child div by the best coders in the world

showing results for - "text align 3acenter apply to parent div or child div"
Felicity
28 Nov 2017
1.parent {
2    width: 100%;
3    border: 1px solid blue;
4    text-align: center;
5}
6
7.child {
8    display: inline-block;  
9    border: 1px solid red;
10    margin: 2px;
11}
12