Report Bug

QusWhat does the ‘margin:auto’ means? QusWhat does the ‘margin:auto’ means?


A. Set the margin equally on top and bottom of the element
B. Set the margin equally on left and right of the element
C. Set the margin equally on all sides of the element.
D. It is uncertain what will happen


Solution
B. Set the margin equally on left and right of the element



Explanation

In CSS (Cascading Style Sheets), the margin:auto property is used to center an element horizontally within its containing element. When you apply margin:auto to an element, it sets the left and right margins to automatic, causing the element to be horizontally centered.

Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad