Can background image extend beyond div's borders?

后端 未结 7 1354
遥遥无期
遥遥无期 2020-12-05 10:05

Can background image extend beyond div\'s borders? Does overflow: visible apply to this?

7条回答
  •  孤街浪徒
    2020-12-05 10:11

    I understand this is really really late, and I am not even sure if this is best practice but I found a little way to do this with my footer. My last section had a background image that I wanted to overflow into the footer and I fixed it with a few lines of CSS. Also added a little padding the section with the background image.

    footer{
     background-color: transparent!important;
     top: -50px;
     margin-bottom: -50px;
    }
    

提交回复
热议问题