Skip to content · ⁨דלג לתוכן⁩

Showing and hiding (display) · ⁨הצגה והסתרה (תצוגה)⁩

English

How boxes flow

  • Some elements are block: they stack on top of each other and fill the width — <div>, <p>, <h1>.
  • Some are inline: they sit side by side, taking only as much room as they need — <span>, <a>, <strong>.
  • display lets you change which way an element behaves.

עברית

כיצד קופסאות זורמות

  • חלק מהאלמנטים הם בלוק: הם עומדים זה על גבי זה וממלאים את הרוחב — <div>, <p>, <h1>.
  • חלקם הם אינליין: הם יושבים זה לצד זה, תוך לקיחה רק של כמות המקום שהם צריכים — <span>, <a>, <strong>.
  • display מאפשר לך לשנות את אופן ההתנהגות של אלמנט.

אלמנטים בלוק עומדים בשורות משלהם, אלמנטים אינליין יושבים זה לצד זה, ואף אחד לא נעלם

Handout · ⁨חומר עזר⁩

Log in or create account · ⁨היכנס או צור חשבון⁩

IGCSE, A-Level & AP