Tuesday, May 24, 2016

How to Make Div Background Responsive With CSS


If you are a designer, then you know that inside div responsive is so sy to make responsive with all modern devices, but Div background responsive little hard. I am also a web designer and lots of time facing with this problem. So, I have decided to provide to you for make div background responsive with CSS. It is so sy, just add simple CSS in div element and make background responsive.

For Making a Div background responsive many ways are available. Use below CSS and make a div background responsive.

CSS
background-size:100% auto;
or
background-size: cover;

Add above in div element. Background cover is the right solution for div background responsive. This element covers the div background and proper work on all devices.

No comments:

Post a Comment