CSS3 > Background

Background-size Property in CSS3

How to specify the size of a background image in CSS3?

By using background-size property we can specify the size of a background image.

        body {
            background: url("snitfunda.jpg");
            background-size: 75px 65px;
            background-repeat: no-repeat;
            padding-top: 50px;

       His corporate training clients includes many MNCs.

In the above code snippet we have given the values '75px 65px' to the background-size property. In that '75px' represents the width of the image and '65px' represents the height of the image.


 Views: 1712 | Post Order: 52

Write for us

Hosting Recommendations