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

How do you get the footer to stay at the bottom of a web page?

0 Answers  


What is background color in css?

0 Answers  


How to you override the underlining of hyperlinks?

1 Answers  


What are the different provision provided in css to define the dimension of an element?

0 Answers  


What are the advantages and disadvantages of external style sheets?

0 Answers  






What is the inspect tool?

0 Answers  


What is external style sheet?

0 Answers  


What does webkit mean in css?

0 Answers  


How does a browser determine what elements match a css selector?

0 Answers  


Is sass better than css?

0 Answers  


What is css attr() funtion?

0 Answers  


What are the associate boarder image properties in css3?

0 Answers  


Categories