I am currently working on a section of my website where I have applied some CSS to 2 divs and an anchor tag in order to center the content vertically.
However, I am facing an issue with the flex style properties when the window size is less than 768px. Instead of the layout changing to stack the columns on top of each other, they just become very thin and remain side by side. Is there a solution to this problem without resorting to table-cell formatting?
.about-us-nav {
display: flex;
align-items: center;
justify-content: center;
}
.about-us-nav a {
font-size: 20px;
color: #52361D;
background-color: #885A31;
border-color: #52361D;
width: 200px;
height: 100px;
display: flex;
align-items: center;
justify-content: center;
}
.how-help-container {
margin-top: -25px;
display: flex;
align-items: center;
justify-content: center;
position:absolute;
z-index: 2;
}