[Solved] Place a text above two different solid background colors
I still think CSS gradients is the way to go. You can set where the color stop is positioned if you need to. It also doesn’t rely on setting a height. div { background-image: linear-gradient(to bottom, #ee615f, #ee615f 50%, #9f3e3e 50%, #9f3e3e); font-family: sans-serif; font-size: 40px; line-height: 1; padding: 25px 0; margin-bottom: 25px; text-align: center; … Read more