Having a variety of elements on my screen that require overlays, I find myself facing a challenge. These elements come in different sizes and can be resized while the page is active.
Although I managed to position overlays using CSS, the issue of 100% height not working has arisen:
.upgrade {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
Is there a CSS solution that allows one element to fully cover another? If CSS isn't the answer, my backup plan involves using jQuery/JavaScript to set the initial height and monitor resize events. Is this the best approach to take?
I'm hopeful that the 100% height dilemma can be resolved through CSS. Any assistance you can provide would be greatly appreciated!