Question

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

Option 3 : 250 px / 250 पिक्सेल

Advertisement

Detailed Solution

सही उत्तर 250 px / 250 पिक्सेल है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

A div has 'width: 200px; padding: 20px; border: 5px solid black;' with default box-sizing. Its total rendered width is / एक div में 'width: 200px; padding: 20px; border: 5px solid black;' है, डिफ़ॉल्ट box-sizing सहित। इसकी कुल रेंडर की गई चौड़ाई है

1.
200 px / 200 पिक्सेल
2.
225 px / 225 पिक्सेल
3.
250 px / 250 पिक्सेल
4.
270 px / 270 पिक्सेल

Correct Answer: 250 px / 250 पिक्सेल

With content-box sizing, width sets only the content area; padding and border add on both sides, giving 200 + 2x20 + 2x5 = 250. / content-box साइजिंग में width केवल विषयवस्तु क्षेत्र तय करता है; पैडिंग और बॉर्डर दोनों ओर जुड़ते हैं, अतः 200 + 2x20 + 2x5 = 250।

Downloaded from PrepSnap (prepsnap.in)