In the desktop view, which is larger than 480px, I need a specific <td>
to have a left-padding of 9px. However, once the resolution goes below 480px, this left-padding should increase to 18px.
At the moment, my padding definition is specified within the element:
@media only screen and (max-width: 480px){
td[class=paddingControl]{
padding-left:18px !important;
}
<table>
<td style="padding-top:0px; padding-left:9px; padding-bottom:9px; padding-right:18px;" class="paddingControl">
Data Here
</td>
</table>
However, it seems that this approach is not working as expected. Do you have any suggestions on how to fix this issue?
Your assistance is greatly appreciated!