Answer Posted / 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 View All Answers
What is the difference between id and class in css?
How does the index function?
What is the html element formatting model in css?
What is the latest version of css and html?
Why overflow is used in css?
What is attribute selector?
Is it better to use margin or padding?
What is an inline?
How to manage the div visibility during 3D-transform ?
What does cascading mean?
How can change the background of a photo?
What's the difference between resetting and normalizing css?
What is css rule 'at-rule'?
Is box sizing inherited?
What are the advantages and disadvantages of inline styles?