From 05f52fcd020b4d3e202061a76c684c18f5a4cb17 Mon Sep 17 00:00:00 2001 From: Joana Barradas Date: Fri, 16 Aug 2019 05:47:23 +0200 Subject: [PATCH] Add CSS code: "body, html { (#27932) --- .../index.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/guide/portuguese/css/tutorials/perfect-full-page-background-image/index.md b/guide/portuguese/css/tutorials/perfect-full-page-background-image/index.md index 5e22e92a57..47cb759735 100644 --- a/guide/portuguese/css/tutorials/perfect-full-page-background-image/index.md +++ b/guide/portuguese/css/tutorials/perfect-full-page-background-image/index.md @@ -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: \ No newline at end of file + +```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)