Layout

noun

say it: “LAY-owt” /ˈleɪaʊt/

The step where the browser works out how big every box on a page is and where it goes. It also means the arrangement you choose for those boxes: rows, columns, side by side or stacked.

What is layout in the browser?

Layout is the step where the browser works out the size and position of every box on the page.

const el = document.querySelector(".card");
el.style.width = "300px";
console.log(el.offsetHeight);   // forces layout to run now

In a sentence

  • “When I made the photo bigger, the browser redid the layout and the caption moved down.”
  • “The bike shop's layout puts the filters in a column on the left and the bikes on the right.”

Level: Master · More CSS terms at this level

Updated