CSS Questions & Answers – Cross-Browser Layout Techniques

This set of CSS Multiple Choice Questions & Answers (MCQs) focuses on “Cross-Browser Layout Techniques”.

1. Which of the following property specifies the transparency of an element?
a) alpha
b) opacity
c) opac
d) none of the mentioned
View Answer

Answer: b
Explanation:

Syntax: opacity: alphavalue | inherit

advertisement
advertisement

2. Which of the following property defines the offset from an element’s border and its outline?
a) outline-border
b) outline-offset
c) outline-radius
d) none of the mentioned
View Answer

Answer: b
Explanation:

Syntax: outline-offset: length | inherit

3. Which of the following property allows a marquee to be used in the case of a text overflow?
a) overflow-style
b) overflow-text
c) overflow-marquee
d) none of the mentioned
View Answer

Answer: a
Explanation:

Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!
Syntax: overflow-style: auto | marquee-block

4. Which of the following property defines how content should behave when it exceeds the width of its enclosing element?
a) overflow-y
b) overflow-x
c) overflow-z
d) overflow-width
View Answer

Answer: b
Explanation:

advertisement
Syntax: overflow-x: auto | hidden

5. Which of the following property is used to give a 3-D sense of depth to an element?
a) animation
b) perspec
c) sense
d) perspective
View Answer

Answer: d
Explanation:

advertisement
Syntax: perspective: none

6. Which of the following property is used to define whether an element should be resized and, if so, upon what axis?
a) axis
b) resize
c) set-origin
d) set-axis
View Answer

Answer: b
Explanation:

Syntax: resize: both | horizontal | none

7. Which of the following property defines the alignment of Ruby text as defined by a <rt> tag, in relation to base text defined by a <ruby> tag?
a) ruby-align
b) ruby-text
c) ruby
d) none of the mentioned
View Answer

Answer: a
Explanation:

Syntax: ruby-align: auto | center

8. Which of the following property sets the base color for a scroll bar, which will include the scroll box, track, and scroll arrows?
a) scrollbar-base
b) scrollbar-base-color
c) scrollbar-background
d) none of the mentioned
View Answer

Answer: c
Explanation:

Syntax: scrollbar-base-color: color

9. Which of the following property defines a color for the face of a scroll bar, including arrow regions and the scroll box?
a) scrollbar-face
b) scrollbar-face-color
c) scrollbar-face-background
d) scrollbar-background
View Answer

Answer: c
Explanation:

Syntax: scrollbar-face-color: color

10. Which of the following property defines a highlight color for a scroll bar and scroll arrows?
a) scrollbar-color
b) scrollbar-highlight
c) scrollbar-highlight-color
d) scrollbar-highlight-background
View Answer

Answer: c
Explanation:

Syntax: scrollbar-highlight-color: color

Sanfoundry Global Education & Learning Series – CSS.

To practice all areas of CSS, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.