Recently, I encountered a small snippet of HTML code with the main focus being an h2 element.
#top-warning{
justify-content: center !important;
display: flex;
width: 100%;
margin-top: 5vw;
letter-spacing: 3px;
font-family: "Penguin Regular";
color: rgb(255, 255, 255);
}
The issue I'm facing is related to the CSS styling for an h2 element. Whenever the window size is adjusted, the position of the h2 elements changes vertically, sometimes getting hidden under other elements. I'm seeking advice on how to ensure that every element automatically resizes to maintain proper scaling.