I think you can use background-position
to accomplish what you want.
How to use it: http://www.w3schools.com/cssref/pr_background-position.asp
Fitting background image to screen and positioning it to bottom
-
11-06-2023 - |
Pergunta
I want to apply a background image to my web page so that it covers the whole page. But the image height is bigger than the page height and I want the bottom of the image to align with the bottom of the page. Is it possible? Here's the technique I'm using so far, which doesn't make this bottom alignment:
background-image:url(background.jpg);
background-repeat:no-repeat;
background-size:cover;
I tried to add center bottom
after url() but it doesn't work.
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow