Web Development and Design Foundations with HTML5 (8th Edition)
Web Development and Design Foundations with HTML5 (8th Edition)
8th Edition
ISBN: 9780134322759
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
Create a CSS style for an H3 element, where: - colour is blue (in RGB format) - text aligned to left - text decoration red wavy underline - text transformed to uppercase
Find all textareas and paragraphs, and make a red border around them and set the border to red. HTML& CSS gives us structure and style JavaScript brings our webpage to life!! jQuery JavaScript Click to check the effect
4.4 Write a CSS rule that places a background image halfway down the page, tiling it horizon- tally. The image should remain in place when the user scrolls up or down.4.5 Write a CSS rule that gives all h1 and h2 elements a padding of 0.5 ems, a dashed border style and a margin of 0.5 ems.4.6 Write a CSS rule that changes the color of all elements containing attribute class = "greenMove" to green and shifts them down 25 pixels and right 15 pixels.
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