Why can't I use background image and color together?

前端 未结 10 2384
一生所求
一生所求 2020-12-04 07:33

What I am trying to do is to show both background-color and background-image, so that half of my div will cover the right shadow backg

10条回答
  •  天命终不由人
    2020-12-04 07:50

    Make half of the image transparent so the background colour is seen through it.

    Else simply add another div taking up 50% up the container div and float it either left or right. Then apply either the image or the colour to it.

提交回复
热议问题