Computer Science, asked by Anonymous, 3 months ago

which is the best way in CSS to make div perfectly center if it's inside another div. ​

Answers

Answered by Anonymous
0

Explanation:

Vertically centering div items inside another div

Just set the container to display:table and then the inner items to display:table-cell . Set a height on the container, and then set vertical-align:middle on the inner items.

Answered by jahnavip669
0

Answer:

Vertically centering div items inside another div

Just set the container to display:table and then the inner items to display:table-cell . Set a height on the container, and then set vertical-align:middle on the inner items.

Similar questions