How do I block the padding of this function
<div style=" width: 300px; float:left; padding-top:68px" > no @media ?
The goal is to block padding at lower resolutions.
How do I block the padding of this function
<div style=" width: 300px; float:left; padding-top:68px" > no @media ?
The goal is to block padding at lower resolutions.
Use class
along with @media
:
.minha-div {
padding-top: 68px;
width: 300px;
float: left;
}
@media (max-width: 300px) {
.minha-div {
padding-top: 0px !important;
}
}
<div style="" class="minha-div">
</div>
In this link has a tutorial on how to use CSS half-queries.
In CSS the rules are applied in order ... in your case it probably loads before html.
Try to put! important in your rule in @media
@media... {
.classeDaDiv {
padding-top: 0 !important;