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 use and syntax of class in css?

0 Answers  


What is the float property used for in css?

0 Answers  


What are the different web fonts formats in css?

0 Answers  


What are css counters?

0 Answers  


What are the necessities of using html forms?

0 Answers  






What is hover effect in css?

0 Answers  


What are css vendor prefixes?

0 Answers  


What are the types of css selectors?

0 Answers  


What is webkit appearance?

0 Answers  


What is the use of a pseudo class?

0 Answers  


What are the pseudo classes on <a> tags?

0 Answers  


What are the different units used in css?

0 Answers  


Categories