How to center align a div inside another div?



How to center align a div inside another div?..

Answer / hrpynux@gmail.com

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.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CSS Cascading Style Sheets Interview Questions

Define float property of CSS??

0 Answers  


What is the difference between css3 and css4?

0 Answers  


What is the difference between class selectors and id selectors?

0 Answers  


How can we group heading elements in html?

0 Answers  


How to style label associated with the selected radio input and checked check boxes ?

0 Answers  






What is a font weight?

0 Answers  


What is a type selector?

0 Answers  


What is a div in css?

0 Answers  


What is hover effect in css? How we can apply on tags?

0 Answers  


How css is used in html?

0 Answers  


What are image sprites?

0 Answers  


Why imported is an easy way to insert the file?

0 Answers  


Categories