Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 1 : content, padding, border, margin / सामग्री, पैडिंग, बॉर्डर, मार्जिन

Advertisement

Detailed Solution

सही उत्तर content, padding, border, margin / सामग्री, पैडिंग, बॉर्डर, मार्जिन है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

From the content outward, the correct order of layers in the CSS box model is... / सामग्री से बाहर की ओर, CSS बॉक्स मॉडल में स्तरों का सही क्रम है...

1.
content, padding, border, margin / सामग्री, पैडिंग, बॉर्डर, मार्जिन
2.
content, margin, border, padding / सामग्री, मार्जिन, बॉर्डर, पैडिंग
3.
content, border, padding, margin / सामग्री, बॉर्डर, पैडिंग, मार्जिन
4.
margin, border, padding, content / मार्जिन, बॉर्डर, पैडिंग, सामग्री

Correct Answer: content, padding, border, margin / सामग्री, पैडिंग, बॉर्डर, मार्जिन

Moving outward from the content, the box model layers are padding first, then border, then margin. Padding sits inside the border, while margin sits outside it and separates the box from its neighbours. / सामग्री से बाहर की ओर बॉक्स मॉडल की परतें हैं — पहले पैडिंग, फिर बॉर्डर, फिर मार्जिन। पैडिंग बॉर्डर के भीतर होती है, जबकि मार्जिन उसके बाहर होती है और बॉक्स को पड़ोसियों से अलग करती है।

Downloaded from PrepSnap (prepsnap.in)