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 are examples of markup languages?
Define Declaration block?
What is css box model?
What is style sheet with example?
What is the difference between inline, inline-block, and block?
What is profit margin percentage?
How does css work under the hood?
What is a cascade meeting?
How do I link an external css?
What are the difference between inline css & internal css?
What are the advantages disadvantages of using css preprocessors?
How to style forms?
What is the syntax of opacity in css3?
What is the use of hsl()?
Css rule to disable text selection highlighting?