Physics, asked by pratapabir5453, 11 months ago

Styles will horizontally center a fixed-sized element inside its parent?

Answers

Answered by Anonymous
2

Answer:

Use the "inline-block" value of the display property to display the inner <div> as an inline element as well as a block. Set the text-align property on the outer <div> element to center the inner one. This property only works on inline elements

Similar questions