0

Background image

I'm making a website and I need to insert a background image at the center by using CSS. What should I do

30th Jan 2020, 12:37 PM
Gideon Peter Maina
Gideon Peter Maina - avatar
2 Antworten
0
CSS Backgrounds CSS allows you to add single or multiple background images for an element, through the background-image property. The different background images are separated by commas, and the images are stacked on top of each other, where the first image is closest to the viewer. The following example has(multiple) two background images, the first image is a flower (aligned to the bottom and right) and the second image is a paper background (aligned to the top-left corner): <--MULTIPLE BACKGROUND IMAGES--> html {   background-image: url(img_flwr.gif), url(paper.gif);   background-position: right bottom, left top;   background-repeat: no-repeat, repeat; }
30th Jan 2020, 12:51 PM
Yogeshwaran
30th Jan 2020, 12:56 PM
Yogeshwaran