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 profit margin percentage?
Can you nest flexbox?
What is the purpose of px measurement unit?
What is a cascading relationship?
What is the difference between internal and external style sheets?
What is a css reset. What is the difference between a css reset and normalize.css?
What is graceful degradation?
What is Responsive Web design?
How does a style sheet work?
What is the difference between a relative, fixed, absolute and statically positioned element?
What are css modules in react?
Does css work in notepad?
What does :: before mean in css?
What are the different media types allowed by css?
Can you add multiple classes to an element?