CSS Questions & Answers – Floating Elements for Layout

This set of CSS Assessment Questions and Answers focuses on “Floating Elements for Layout”.

1. Which of the following values are zccepted by the float Property?
a) left
b) right
c) none
d) all of the mentioned
View Answer

Answer: d
Explanation: Self-explainatory.

2. Which of the following property is used to control the behavior of floating elements?
a) format
b) clean
c) clear
d) remove
View Answer

Answer: c
Explanation: Self-explainatory.

3. The default value for the float property is right.State true or false.
a) True
b) False
View Answer

Answer: b
Explanation: The default value for this property is none.
advertisement
advertisement

4. In what direction does float will work?

 img {
    float: right;
	}

a) left
b) top
c) bottom
d) right
View Answer

Answer: d
Explanation: Self-explainatory.
Note: Join free Sanfoundry classes at Telegram or Youtube

5. Which of the following property allows elements to be offset, rotated, scaled, and skewed in a variety of different ways?
a) transform-style
b) transform
c) transition
d) transform-origin
View Answer

Answer: b
Explanation: None.
advertisement

6. Which of the following property is used to define how nested items are rendered in a 3-D space, the choice being either flattened or with their dimensions preserved?
a) transition-duration
b) transition-delay
c) transition
d) transform-style
View Answer

Answer: d
Explanation:

Syntax: transform-style: flat

7. Which of the following property is used to define the time it takes one iteration of an animation to play?
a) transition-property
b) transition-timing
c) transition-duration
d) user-select
View Answer

Answer: c
Explanation:

advertisement
Syntax transition-duration: time [,time]*

where time is a valid time value like 5s or 3500ms. The default value of time is 0, meaning no animation plays.

8. Which of the following property sets the distance between an element’s right border and the rightmost edge of its content?
a) auto
b) padding-left
c) padding-right
d) padding-top
View Answer

Answer: c
Explanation:

Syntax: padding-right: length | percentage | auto

9. Which of the following property is used to control page breaks when printing a document after the bound element box ends?
a) page-inside
b) page-break-after
c) page-break-inside
d) page-break-before
View Answer

Answer: b
Explanation:

Syntax: page-break-after: always | auto

10.Which of the following property defines the style of quotation marks to be used with embedded quotations?
a) article
b) para
c) quote
d) quotes
View Answer

Answer: d
Explanation:

Syntax: quotes: quote-pair1 ... quote-pairN | none

Sanfoundry Global Education & Learning Series – CSS.

To practice all areas of CSS Assessment Questions, 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.