I want a color overlay on this header element. How can I do this with CSS?
You may use negative superthick semi-transparent border...
.red {
outline: 100px solid rgba(255, 0, 0, 0.5) !important;
outline-offset: -100px;
overflow: hidden;
position: relative;
height: 200px;
width: 200px;
}
Anything can be red.
Or even image...
This solution requires you to know exact sizes of covered object.