I want to do everything semantically correctly (i.e., without extra divs, etc.). At the moment there is a rule in css:
html {background-image: url('../images/news.jpg'); background-repeat: no-repeat; background-attachment: fixed; } Problems:
- How to properly adjust the height of the picture? Picture size: 1200 x 1550. It is necessary that the picture is correct (i.e., full width and height) displayed on most screens with very different resolutions (which is why it is so high) It is important that the picture is> the height of the screen. For example, like me (15 inches, 1280 x 800) the picture is not fully visible, but only that part that fits on the screen. In this case, the problem of adding a footer arises: the footer went to the very bottom of the picture, i.e. it is not visible on the screen.
- How to make the background for wider screens than mine? Stretch the background - it seems to be the wrong way to distort the image. If you make a wider background, then how to configure it for most screens to display the full width of the background?
- I'm trying to work with a background size of about 1-1.5 MB. Is this too much for Internet browsers (i.e., you may have to wait a long time until the entire web page is loaded)?