From df28627c68f5806f2f7ffc15549af5b7a4a541bd Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Thu, 30 Dec 2021 20:02:32 +0300 Subject: [PATCH] add css images --- CSS/README.md | 1 + CSS/back-image-cover.css | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 CSS/back-image-cover.css diff --git a/CSS/README.md b/CSS/README.md index c431629..eca3bac 100644 --- a/CSS/README.md +++ b/CSS/README.md @@ -3,3 +3,4 @@ - [`@font-face`](font-face.css) - пример добавления шрифта из файла - [Pixel Art](pixel-art.css) - настройки для рендера Pixel Art на `canvas` - [Список без точек](ul-remove-bullets.css) - убираем точки (bullet) в списках +- [BG Image cover](back-image-cover.css) - Фоновое изображение по центру diff --git a/CSS/back-image-cover.css b/CSS/back-image-cover.css new file mode 100644 index 0000000..167ef3a --- /dev/null +++ b/CSS/back-image-cover.css @@ -0,0 +1,8 @@ +body{ + margin: 0px; + height: 100vh; + background-image: url('../img/landing.jpg'); + background-size: cover; + background-position: center center; + background-repeat: no-repeat; +}