EDIT: You can see an example in this JSFiddle.
I've inherited an old website that uses absolutely no responsive framework. Everything was done by hand, and it shows. The website was in-use until about a year ago, and now I need to revive it.
In one of the pages there are four panels that should be ordered like this:
A B
C D
This is done with the following style:
.panel-container {
float: left;
width: 48%;
text-align: center;
margin-bottom: 2%;
}
Up until a year ago, everything was fine. However, now when I try to display the page I get something like this:
A B
C
D
Only when the window is large enough (by zooming out to 70%) is the page displayed properly.
I tried changing the width
in the CSS, and things became even stranger! Setting a width of 32% showed the following, as expected:
A B C
D
Setting the width to anything greater than 33% resulted in the problematic layout.
I'm stumped, I'm not even sure how to proceed from here, other than redoing the site with a flexbox.