I'm in the process of creating a webshop and facing an issue with my sidebar due to varying product counts on different pages.
For now, I have implemented the following workaround:
padding-bottom: 5000px;
margin-bottom: -5000px;
overflow: hidden;
While this solution works fine on IE and Chrome, I recently tested it on Firefox only to find out that it doesn't work there.
I also experimented with overflow-x: hidden and overflow-y: hidden, but they didn't solve the issue either.
Below is the CSS for my sidebar:
.sidebar {
z-index: 9;
position: absolute;
top: 25%;
bottom: 0;
left: 0;
width: 15%;
background: #C6A970;
height: 100%;
padding-bottom: 5000px;
margin-bottom: -5000px;
overflow: hidden;
}
If anyone has a solution to this problem, I'd greatly appreciate your help! Thank you in advance!