--- title: CSS Layout cookbook slug: Web/CSS/Layout_cookbook tags: - CSS - Layout - NeedsTranslation - TopicStub - cookbook - recipes translation_of: Web/CSS/Layout_cookbook ---
Recipe | Description | Layout Methods |
---|---|---|
Media Objects | A two-column box with an image on one side and descriptive text on the other, e.g. a facebook post or tweet. | CSS Grid, {{cssxref("float")}} fallback, {{cssxref("fit-content")}} sizing |
Columns | When to choose multi-column layout, flexbox or grid for your columns | CSS Grid, Multicol, Flexbox |
Center an element | How to center an item horizontally and vertically | Flexbox, Box Alignment |
Sticky footers | Creating a footer which sits at the bottom of the container or viewport when the content is shorter. | CSS Grid, Flexbox |
Split Navigation | A navigation pattern where some links are visually separated from the others. | Flexbox, {{cssxref("margin")}} |
Breadcrumb Navigation | Creating a list of links to allow the visitor to navigate back up through the page hierarchy. | Flexbox |
As with all of MDN we would love you to contribute a recipe in the same format as the ones shown above. See this page for a template and guidelines for writing your own example.