There are many solutions for this:
1. add this to the child (note: a width needs to be specified):
margin-left: auto;
margin-right: auto;
2. use text-align: center
3. use flexbox
This article solves the following challenge:
One solution to the problem would be to apply the following CSS to the inner object:
#inner {
display: table;
margin: 0 auto;
}
Evaluate complexity of present statement:
Select ratingCancelGuessingPassing knowledgeKnowledgeableExpert
Your rating: None Average: 4 (1 vote)