The Spaces not
covered by a background image are filled with the The
To specify the size of multiple background images, separate the value for each one with a comma. Values
Scales the image as large as possible within its
container without cropping or stretching the image. If the container is larger than the image, this will result in image tiling, unless the cover Scales the image (while preserving its ratio) to the smallest possible size to fill the container (that is: both its height and width completely cover the container), leaving no empty space. If the proportions of the background differ from the element, the image is cropped either vertically or horizontally. auto Scales the background image in the corresponding direction such that its intrinsic proportions are maintained. <length> Stretches the image in the corresponding dimension to the specified length. Negative values are not allowed. <percentage> Stretches the image in the corresponding dimension to the specified percentage of the background positioning area. The background positioning area is determined by the value of Intrinsic dimensions and proportionsThe computation of values depends on the image's intrinsic dimensions (width and height) and intrinsic proportions (width-to-height ratio). These attributes are as follows:
Note: In Gecko, background images created using the Based on the intrinsic dimensions and proportions, the rendered size of the background image is computed as follows:
Note: Background sizing for vector images that lack intrinsic dimensions or proportions is not yet fully implemented in all browsers. Be careful about relying on the behavior described above, and test in multiple browsers to be sure the results are acceptable. Formal definition
Formal syntaxbackground-size = ExamplesTiling a large image Let's consider a large image, a 2982x2808 Firefox logo image. We want to tile four copies of this image into a 300x300-pixel element. To do this, we can use a fixed HTML
CSS
ResultSee Resizing background images for more examples. Specifications
Browser compatibilityBCD tables only load in the browser See alsoWhich form property enables an individual to add descriptive text that will display in the status bar for a selected control?Status Bar Text property
A form property that enables individuals to enter text that will display in the status bar for a selected control.
Which section of a report appears at the top of the first printed page?Page Header This section is printed at the top of every page. For example, use a page header to repeat the report title on every page. Group Header This section is printed at the beginning of each new group of records. Use the group header to print the group name.
Which of the following form sections displays information when a form is printed and is only visible in design or print preview view?The Page Footer form section displays information when a form is printed, and is only visible in Design or Print Preview view.
Which of the following views shows how the report will look when printed?Explanation: Print view will show exactly how the report will look when printed.
|