Is there a way to adjust padding based on screen resolution, specifically for 1366x768px? If the resolution is higher than 768px, I want the padding to be set to 60 on top.
I've attempted using min-height and max-height properties without success. Are there any alternative solutions for this issue?
@media (min-height: 768px) {
body{
padding-top: 0px;
}
}
body {
padding-top: 60px;
padding-bottom: 0px;
margin: 5%;
}
How can the padding be removed when the resolution is smaller than 786px?