Skip to content · ⁨ข้ามไปยังเนื้อหา⁩

Spacing — margin and padding · ⁨ระยะห่าง — margin และ padding⁩

English

Space between boxes

  • Margin is the space outside a box — the gap to its neighbours.
  • margin: 30px; adds 30 pixels on all four sides, outside the border.
  • Padding pushes the content in; margin pushes other boxes away.
ไทย

ระยะห่างระหว่างกล่อง

  • Margin คือพื้นที่ ภายนอก ของกล่อง —也就是它与邻居之间的间隙。
  • margin: 30px; เพิ่ม 30 พิกเซลทั้งสี่ด้าน ด้านนอกของ Border
  • Padding ดัน เนื้อหาเข้า; Margin ดัน กล่องอื่นให้ห่างออกไป

Handout · ⁨เอกสารประกอบการเรียน⁩

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP