shafayat hossain shafayat hossain - 22 days ago 6
HTML Question

How to set the background behind another background image?

Here I want to set the white background line behind the blue triangle. How can I do this?
Here is bootply link.

Answer

Why don't you use z-index property: See demo

The z-index property specifies the z-order of an element and its descendants. When elements overlap, z-order determines which one covers the other. An element with a larger z-index generally covers an element with a lower one.

footer .container::before,footer .container::after {
background:#eeeeee;
height:1px;
width:100%;
z-index: -1;
position: relative;
}