w3-padding-number クラスは、HTML 要素の上下にパディングを追加します:
I have 4px top and bottom padding
I have 8px top and bottom padding
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
I have 128px top and bottom padding
<div class="w3-container w3-padding-16">
<p>I have 16px top and bottom padding.</p>
</div>
Try It Yourself ❯
w3-padding-size クラスは、HTML 要素にパディングを追加します:
w3-padding-tiny class adds 2px top and bottom and 4px left and right.
w3-padding-small class adds 4px top and bottom and 8px left and right.
w3-padding-medium class adds 8px top and bottom and 16px left and right.
w3-padding-large class adds 12px top and bottom and 24px left and right.
w3-padding-xlarge class adds 16px top and bottom and 32px left and right.
w3-padding-xxlarge class adds 24px top and bottom and 48px left and right.
w3-padding-jumbo class adds 32px top and bottom and 64px left and right.
<div class="w3-container w3-padding-xlarge">
<p>I have 16px top and bottom padding and 32px left and right padding.</p>
</div>
Try It Yourself ❯