CSS background-size
Category: CSS, CSS Tutorials | 2,356 views | Add a Comment |
background-size Description:
This is a CSS 3 property from the CSS 3 Working Draft. Until the draft has been finalized, there may be additional changes. For most up-to-date information, go to the W3C.
The background-size property allows you to change the size of the background image to better fit your page. It is often thought of as the background stretch property.
background-size in CSS Versions:
background-size Syntax:
background-size: [ [ <length> | <percentage> | auto ]{1,2} || round ]
- length - A specific size
- percentage - A size relative to the container element.
- round - tells the user agent to get it close to that width or height
If you specify one value, the image stretches the same amount for width and height. Two values equal the width then the height to stretch. Read more…
- How to use CSS Background Properties
- CSS ID Selector
- Use shorthand CSS notation
- Organize your CSS-code
- HTML Basics
- CSS Framework
- 150 CSS Examples
- Using Logo with CSS
- Introduction to CSS3
- How to design css sitemap Tree




