Please help - new to web design. why wont background-size:cover work? for some reason it ignores cover and repeats it

前端 未结 1 1376
故里飘歌
故里飘歌 2021-01-29 10:53

CSS - This is the css i have written. Im not sure why the background color repeats instead of covering like i said. Sorry if its a dumb mistake, im very new to coding and web de

1条回答
  •  旧巷少年郎
    2021-01-29 11:21

    To quote MDN

    The background-size CSS property specifies the size of the background images.

    The key word there is images. Size will not apply to color or gradients.

    0 讨论(0)
提交回复
热议问题