I need to fill the parent height with color bars, but they are absolutely positioned in the top right corner. Is there a way to achieve this dynamically, adapting to the number of lines in the headline?
Take a look at the image and this example.
CSS for the color columns: (for full CSS, refer to the example)
.header .colorColumn {
width: 18px;
height: 70px;
float: right;
}
.header .trackColors {
position: absolute;
right: 0;
top: 0;
}
Additional Question:
How can I make the bars appear behind the text but above the gray background? The z-index solution is tricky when both layers need to be absolutely positioned.
Update 1:
The number of color columns is dynamic - how can it be adjusted to work with a variable number of columns?