VDone Demo VDone Demo
Home
  • Articles

    • JavaScript
  • Study Notes

    • JavaScript Tutorial
    • Professional JavaScript
    • ES6 Tutorial
    • Vue
    • React
    • TypeScript: Build Axios from Scratch
    • Git
    • TypeScript
    • JS Design Patterns
  • HTML
  • CSS
  • Technical Docs
  • GitHub Tips
  • Node.js
  • Blog Setup
  • Learning
  • Interviews
  • Miscellaneous
  • Practical Tips
  • Friends
About
Bookmarks
  • Categories
  • Tags
  • Archives
GitHub (opens new window)

Nikolay Tuzov

Backend Developer
Home
  • Articles

    • JavaScript
  • Study Notes

    • JavaScript Tutorial
    • Professional JavaScript
    • ES6 Tutorial
    • Vue
    • React
    • TypeScript: Build Axios from Scratch
    • Git
    • TypeScript
    • JS Design Patterns
  • HTML
  • CSS
  • Technical Docs
  • GitHub Tips
  • Node.js
  • Blog Setup
  • Learning
  • Interviews
  • Miscellaneous
  • Practical Tips
  • Friends
About
Bookmarks
  • Categories
  • Tags
  • Archives
GitHub (opens new window)
  • HTML

  • CSS

    • CSS Tutorials and Tips Collection
      • Flex Layout Tutorial: Syntax
      • CSS Grid Layout Tutorial
      • Five Classic CSS Layouts in One Line of Code
    • Flex Layout Syntax
    • Flex Layout Example - Basics
    • Flex Layout Example - Dice
    • Flex Layout Example - Holy Grail Layout
    • Flex Layout Example - Grid Layout
    • Flex Layout Example - Input Layout
    • CSS3 Transition
    • CSS3 Animation
    • Layout Tip - Auto-Expand Element Height Before Images Load
    • Text Overflow Ellipsis for Single and Multiple Lines
    • Understanding the Box Model Through the box-sizing Property
    • Horizontal and Vertical Centering Methods - Examples
    • How to Automatically Respond to CSS Dark Mode Based on System Theme
    • CSS Trick - Custom Hover Tooltips with :hover and attr()
    • CSS Functions Summary
    • Adding a Scrollbar to a Table's tbody with CSS
    • Animations in Grid Layout
  • 页面
  • CSS
xugaoyi
2020-08-11
Contents

CSS Tutorials and Tips Collection

# Flex Layout Tutorial: Syntax

http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html (opens new window)

# CSS Grid Layout Tutorial

http://www.ruanyifeng.com/blog/2019/03/grid-layout-tutorial.html (opens new window)

# Five Classic CSS Layouts in One Line of Code

http://www.ruanyifeng.com/blog/2020/08/five-css-layouts-in-one-line.html (opens new window)

  • Centered layout

    Regardless of container size, the item always occupies the center point

  • Side-by-side layout

    Multiple items side by side; items that don't fit wrap to the next line

  • Two-column layout

    A sidebar and a main column. The sidebar is always present; the main column adjusts its width based on device width

  • Sandwich layout

    The page is divided vertically into three parts: header, content area, and footer.

  • Holy Grail layout

    The most commonly used layout, hence its name. It divides the page into five parts: besides the header and footer, the content area is split into a left sidebar, main column, and right sidebar.

Edit (opens new window)
Last Updated: 2026/03/21, 12:14:36
Common Meta Tags Reference
Flex Layout Syntax

← Common Meta Tags Reference Flex Layout Syntax→

Recent Updates
01
How I Discovered Disposable Email — A True Story
06-12
02
Animations in Grid Layout
09-15
03
Renaming a Git Branch
08-11
More Articles >
Theme by VDone | Copyright © 2026-2026 Nikolay Tuzov | MIT License | Telegram
  • Auto
  • Light Mode
  • Dark Mode
  • Reading Mode