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
HTML and CSS: Follow exactly the second picture. 1st picture: My output (I point out where the mistake is with a red circle) 2nd picture is what the output should look like. Note: JUST USE RANDOM PICTURES FOR THE IMAGE LINKS.   Fix something in my code: fishcreek.css body    {     background-color: #5280C5;     color: #003366;        font-family: Arial, Verdana, sans-serif;     background-image: url(gradientblue.jpg);    }#wrapper {     margin-left: auto;        margin-right: auto;        width: 80%;    background-color: #F0F0F0;    min-width: 700px;     }header    {    background-color: #000066;     color: #F0F0F0;     background-image: url(bigfish.gif);    background-repeat: no-repeat;    background-position: center;     text-align:center;     }h1    {         line-height: 250%;        text-indent: 1em;    margin-bottom: 0;    font-size: 3em;     padding: 0.2em;    text-shadow: 3px 3px 5px #CCCCCC;         } nav    {    float: left;    width: 180px;    color: #f0f0f0;…
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