Add CSS code: "body, html { (#27932)
parent
731280c5a5
commit
05f52fcd02
|
@ -8,4 +8,21 @@ Este é um esboço. [Ajude nossa comunidade a expandi-lo](https://github.com/fre
|
|||
|
||||
[Este guia de estilo rápido ajudará a garantir que sua solicitação de recebimento seja aceita](https://github.com/freecodecamp/guides/blob/master/README.md) .
|
||||
|
||||
#### Mais Informações:
|
||||
|
||||
```CSS
|
||||
body, html {
|
||||
height: 100%;
|
||||
}
|
||||
.bg {
|
||||
/* Imagem usada */
|
||||
background-image: url("img.jpg");
|
||||
/* Altura total da página */
|
||||
height: 100%;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
```
|
||||
|
||||
#### Mais Informações:
|
||||
* [W3Schools](https://www.w3schools.com/howto/howto_css_full_page.asp)
|
||||
|
|
Loading…
Reference in New Issue