Explain how the position of a background image is set in a web page.?
What will be an ideal response?
?By default, browsers place a background image in an element's top-left corner. One can place the background image at a different position using the following background-position property:background-position: horizontal vertical;where horizontal and vertical provide the coordinates of the image within the element background expressed using one of the CSS units of measure or as a percentage of the element's width and height. For example, the following style places the image 10% of the width of the element from the left edge of the background and 20% of the element's height from the background's top edge:background-position: 10% 20%;?If a single value is specified, the browser applies that value to both the horizontal and vertical position. Thus, the following style places the background image 30 pixels from the element's left edge and 30 pixels down from the top edge:background-position: 30px;?One can also place the background image using the keywords left, center, and right for the horizontal position and top, center, and bottom for the vertical position. The following style places the background image in the bottom-right corner of the element:background-position: right bottom;?Typically, the background-position property is only useful for non-tiled images because, if the image is tiled, the tiled image fills the background and it usually doesn't matter where the tiling starts.
You might also like to view...
The Dialog Box Launcher is located in the ____ corner of a group.
A. lower-right B. upper-left C. upper-right D. lower-left
One of the first functions of ________ e-commerce was the online auction
Fill in the blank(s) with correct word
Which of the following features helps to insure that improper information is not entered in a field?
A) AutoCorrect Data B) Cell validation C) Data validation D) Field validation
To ensure individual elements remain together in the same position and stacking order, ________ the objects
A) group B) stack C) merge D) overlap