I am facing an issue with the padding in my 'panel' element. Even though I have set the padding to 0, there is still some unwanted white space visible (highlighted in red blocks in the image below). Can anyone help me identify where this padding/white space is coming from?
https://i.sstatic.net/EOM9r.png
Below is the relevant code snippet:
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding-top: 18px;
padding-bottom: 18px;
padding-left: 0px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.active,
.accordion:hover {
background-color: #ccc;
}
.panel {
padding-top: 0px;
padding-bottom: 0px;
display: none;
background-color: white;
overflow: hidden;
}