How block elements can be centered with CSS1?



How block elements can be centered with CSS1?..

Answer / hrpynux@gmail.com

With css the way to center anything that's a block level element is with the margin property. One of the values of margin is auto and by setting auto on the left and right margin our block level element will center itself.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CSS Cascading Style Sheets Interview Questions

What is the most popular font?

0 Answers  


How to manage the div visibility during 3D-transform ?

0 Answers  


How many css files can be included in a sencha touch project?

0 Answers  


What are the types of cascading style sheets?

0 Answers  


Explain what are image sprites?

0 Answers  






What are navigation bars in css?

0 Answers  


Is json a markup language?

0 Answers  


What is the purpose of % measurement unit?

0 Answers  


What are the 4 areas of the box model?

0 Answers  


What is box sizing?

0 Answers  


What is a preprocessor what are the advantage of preprocessor?

0 Answers  


What is a strategy cascade?

0 Answers  


Categories