List possible values for the background-attachment property and briefly explain the use of this property.

What will be an ideal response?


The background-attachment property allows you to set the behavior of the background image with respect to scrolling. The default behavior is the background image scrolls with the rest of the Web page content. The background-attachment property also allows you to detach the background from the elements so the background stays in place, and the content scrolls on top of the fixed background when you scroll down the page. This effect is only seen when the content is longer than the containing element. This property accepts two values: scroll, the default value, in which the image scrolls down the page; and fixed, in which the image stays in place and text scrolls over the image as the user scrolls down the page. The fixed value would be useful, for example, to ensure that a corporate logo always appears at the top of the page, even as the user scrolls down.

Computer Science & Information Technology

You might also like to view...

Each of the following statements about a typical mobile social navigation app is true. Which most captures the essence of the application?

a. The app processes massive amounts of crowdsourced data—that is, the data that’s continuously supplied by users through their mobile GPS-based devices worldwide. b. The app uses speech synthesis to speak driving directions and alerts to you, and speech recognition to understand your spoken commands. c. The app uses your phone as a streaming Internet of Things (IoT) device. Each phone is a GPS sensor that continuously streams data over the Internet to the app. d. The app probably stores its routing information in a graph database. Such databases can efficiently calculate shortest routes.

Computer Science & Information Technology

When you pass an array to a function, the function receives __________.

a. a copy of the array b. the reference of the array c. the length of the array d. a copy of the first element

Computer Science & Information Technology

Which of these is not a plug-in?

(a) Shockwave. (b) Real Player. (c) Adobe Acrobat Reader. (d) Microsoft Chat.

Computer Science & Information Technology

Match the following keyboard shortcuts in many programs with its function:

I. Ctrl+C A. Copy II. Ctrl+V B. Paste III. Ctrl+Z C. Select all IV. Ctrl+X D. Undo V. Ctrl+A E. Cut

Computer Science & Information Technology