Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize oversized background Picture with CSS

Shulou Source: shulou.com Published: 2022-06-01 13:09:51 10月03日 Update

This article is about CSS and how to implement large background images. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.

CSS large background image practice

Large background image, background positioning, horizontal center, vertical top

body{ background-image: url(images/bg.jpg); background-repeat: no-repeat; /* This writing is generally our practice of large background pictures in the future, background positioning, horizontal center, vertical upper */ background-position: center top; } Thank you for reading! About "CSS how to achieve a large background image" this article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!

Tags: Background picture background picture practice content more level article positioning good practical writing article look knowledge reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi macOS MySQL Microsoft Shulou Tech Info