# Layout / CSS Flexbox / CSS Grid

Page layout is a critical part of website design. CSS offers several options for dealing with page layout.

Updated: November 16, 2026

## [CSS Position](https://www.ask-codey.com/courses/java-full-stack-bootcamp/topics/css-position)

1. [Static](https://www.ask-codey.com/lessons/css-position-static) (Apprentice): Static is the default position, where elements sit in the normal flow of the page and top and left don't move them.
2. [Relative](https://www.ask-codey.com/lessons/css-position-relative) (Apprentice): Relative positioning moves an element away from its own normal place, and keeps the space it would have used.
3. [Absolute](https://www.ask-codey.com/lessons/css-position-absolute) (Apprentice): Absolute positioning takes an element out of the page's flow and places it relative to its nearest positioned ancestor, usually a parent with position relative.
4. [Fixed](https://www.ask-codey.com/lessons/css-position-fixed) (Apprentice): Fixed positioning places an element relative to the browser window, so it stays on screen while the page scrolls.
5. [Sticky](https://www.ask-codey.com/lessons/css-position-sticky) (Apprentice): A sticky element scrolls with the page until it reaches its top offset, then stays put until its parent scrolls away.

## [FlexBox](https://www.ask-codey.com/courses/java-full-stack-bootcamp/topics/flexbox)

1. [FlexBox: an overview](https://www.ask-codey.com/lessons/flexbox-an-overview) (Apprentice): Setting display to flex on an element lines up its children side by side in a row, and flex-direction can turn that row into a column.
2. [Justify Content](https://www.ask-codey.com/lessons/flexbox-justify-content) (Apprentice): The justify-content property on a flex container decides where the extra space goes, so its items can sit at the start, the end, the center or spread out.

## [Grid](https://www.ask-codey.com/courses/java-full-stack-bootcamp/topics/grid)

1. [Grid](https://www.ask-codey.com/lessons/grid) (Journeyman): CSS Grid lays a container's children out in rows and columns at once, with column widths you set in fr, % or px, gaps between the cells, and items that can span more than one cell.

Source: https://www.ask-codey.com/courses/java-full-stack-bootcamp/chapters/layout-css-flexbox-css-grid
