Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
9th Edition
ISBN: 9780134801148
Author: Terry Felke-Morris
Publisher: PEARSON
Question
Book Icon
Chapter 4.5, Problem 1CP
Program Plan Intro

“background-image” property:

It is a Cascading Style Sheet (CSS) property used to apply the image as background for an element. By default, the background image sets at top-left corner of a tag. The background-image can repeated horizontally and vertically by using “repeat” property. The image name must be entered with its format.

“background-repeat” property:

This property used to repeat an element that is displayed on web page; it can be divided into three ways:

  • repeat-x ( Used to repeat an element in horizontal way)
  • repeat-y (Used to repeat an element in vertical way)
  • no-repeat (Repeating once)

Here, “background-repeat: no-repeat” property used to sets the image once in the web page.

Blurred answer
Students have asked these similar questions
Question 1 What are the problems with the above code? Consider the syntax, structure, and writing style.  Question 2 Write CSS code that tidies up the above code. Your code should minimise the use of inline style.  Queston 3 Add a CSS selector for all paragraphs (p elements) under div elements with class “exam” to make their background colour blue.
write a CSS style rule to set up a linear gradient background based on the following requirements: it is for a class named peter the direction of the linear gradient is to be from right to left and must be represented by degrees the starting colour must be red and presented in the RGB format the ending colour must be blue and presented in hexadecimal format
the background-position in the following CSS is: body { background-color: #FFCC66; background-image: url("butterfly.gif"); background-repeat: no-repeat; background-attachment: fixed; background-position: 50% 100%; Select one: a. bottom center b. center bottom C. right center d. center right
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning