MCQ Answer

What does the ‘margin:auto’ means?

What does the ‘margin:auto’ means?

Topic : Properties in CSS

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




Correct Answer is :

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.

CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz