Resize image with CSS

0

I have a question regarding image resizing in CSS.

I have a 1920x1080 image.

This image should be resized automatically so that it fits on any screen, but I can not do that.

See this site: link

At the top begins to pass a video, this is how I want my page to remain, but instead of the video, an image.

    
asked by anonymous 04.07.2015 / 01:37

1 answer

1

Use the background-size: cover property to resize the background image. For example:

body{
   background-image: url('beach.jpg');
   background-size: cover;
}
    
04.07.2015 / 01:47