Link to home
Start Free TrialLog in
Avatar of dizzycat
dizzycat

asked on

Fit background image to any screen size

Hi experts

I am trying to use CSS to resize a large image that i have for the background of my web-page to fit any screen size, is this possible using just CSS.
background-image:url('pic1.jpg');
background-position:center top;
background-repeat:no-repeat;
height:100%;
margin:0;
padding:0;
width:100%;

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of SSupreme
SSupreme
Flag of Belarus image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial