I have 12px top and bottom padding and 24px left and right padding.
The w3-padding-number classes add top and bottom padding to any HTML element:
Class | Defines |
---|---|
w3-padding-16 | Adds 16px top and bottom padding to an element |
w3-padding-24 | Adds 24px top and bottom padding to an element |
w3-padding-32 | Adds 32px top and bottom padding to an element |
w3-padding-48 | Adds 48px top and bottom padding to an element |
w3-padding-64 | Adds 64px top and bottom padding to an element |
I have 16px top and bottom padding
I have 24px top and bottom padding
I have 32px top and bottom padding
I have 48px top and bottom padding
I have 64px top and bottom padding
<div class="w3-panel w3-padding-16">
<p>I have 16px top and bottom padding.</p>
</div>
Try It Yourself »
The w3-padding-size classes add top, bottom, right, and left padding to any HTML element:
Class | Defines |
---|---|
w3-padding | Adds 8px top and bottom, and 16px left and right padding |
w3-padding-small | Adds 4px top and bottom, and 8px left and right padding |
w3-padding-large | Adds 12px top and bottom, and 24px left and right padding |
I have 4px top and bottom padding and 8px left and right padding.
I have 8px top and bottom padding and 16px left and right padding.
I have 12px top and bottom padding and 24px left and right padding.
<div class="w3-panel w3-padding-large">
<p>I have 12px top and bottom padding and 24px left and right padding.</p>
</div>
Try It Yourself »
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!