INTRO

INTRO

New

Intro to the Designer

Intro to the Designer

New

2:48

Intro to HTML & CSS

Intro to HTML & CSS

New

3:38

HTML Structure

HTML Structure

New

1:55

WEB STRUCTURE

WEB STRUCTURE

New

The Box Model

The Box Model

New

1:54

Element Hierarchy

Element Hierarchy

New

3:57

Navigator Panel

Navigator Panel

New

2:45

ELEMENTS

ELEMENTS

New

Element Panel

Element Panel

New

1:49

Section

Section

New

4:14

Container

Container

New

2:44

Columns

Columns

New

2:22

Div block

Div block

New

3:37

Buttons & Links

Buttons & Links

New

Button

Button

New

14:08

Link Block

Link Block

New

9:35

Text Link

Text Link

New

1:16

Typography

Typography

New

3:20

Heading

Heading

New

2:02

Paragraph

Paragraph

New

4:42

Rich Text

Rich Text

New

3:52

Text Block

Text Block

New

0:56

Block Quote

Block Quote

New

0:42

List

List

New

2:31

Media

Media

New

Image

Image

New

3:39

Image File Types

Image File Types

New

2:22

Image Resolution

Image Resolution

New

3:28

Assets Panel

Assets Panel

New

3:08

Video

Video

New

1:20

Background Video

Background Video

New

3:15

Components

Components

New

Intro to Forms

Intro to Forms

New

4:55

Styling Forms

Styling Forms

New

2:55

Navbar

Navbar

New

9:38

Styling a Navbar

Styling a Navbar

New

4:34

Navbar Menu Button

Navbar Menu Button

New

4:51

Slider

Slider

New

4:56

Tabs

Tabs

New

4:38

Lightbox

Lightbox

New

3:44

Map

Map

New

2:58

Dropdown

Dropdown

New

4:38

Social Media Buttons

Social Media Buttons

New

2:49

Custom Code Embed

Custom Code Embed

New

1:24

Symbols

Symbols

New

3:47

Styling Basics

Styling Basics

New

Intro to Style Panel

Intro to Style Panel

New

3:15

HTML Tags

HTML Tags

New

3:59

Classes

Classes

New

2:46

Combo Classes

Combo Classes

New

4:05

Text Style Inheritance

Text Style Inheritance

New

3:18

Style Manager

Style Manager

New

1:56

States

States

New

2:47

Transitions

Transitions

New

2:40

Color Picker & Swatches

Color Picker & Swatches

New

3:51

Color Values

Color Values

New

3:22

Layout Basics

Layout Basics

New

Intro to Web Layout

Intro to Web Layout

New

2:27

Display Settings

Display Settings

New

2:54

Padding & Margin

Padding & Margin

New

2:48

Width & Height Units

Width & Height Units

New

3:59

Floats & Clears

Floats & Clears

New

1:52

Flexbox & Grid

Flexbox & Grid

New

Intro to Flexbox

Intro to Flexbox

New

2:27

Centering elements with Flexbox

Centering elements with Flexbox

New

1:20

Equal height layouts with Flexbox

Equal height layouts with Flexbox

New

1:47

Grid layouts overview

Grid layouts overview

New

4:18

Flexbox vs. Grid

Flexbox vs. Grid

New

4:00

Advanced Layout

Advanced Layout

New

Positioning Overview

Positioning Overview

New

1:48

Relative Positioning

Relative Positioning

New

1:43

Absolute Positioning

Absolute Positioning

New

1:43

Fixed Positioning

Fixed Positioning

New

1:27

Z-Index

Z-Index

New

1:49

Overflow

Overflow

New

1:49

Styling Typography

Styling Typography

New

Intro to Web Typography

Intro to Web Typography

New

3:20

Typography Units

Typography Units

New

2:43

Line Height

Line Height

New

1:38

Advanced Typography Styles

Advanced Typography Styles

New

3:01

Google Fonts

Google Fonts

New

1:18

Custom Fonts

Custom Fonts

New

1:27

Text Shadow

Text Shadow

New

2:36

Background & Border Styles

Background & Border Styles

New

Background Styles Overview

Background Styles Overview

New

2:20

Background Image

Background Image

New

2:04

Background Gradient

Background Gradient

New

3:02

Border

Border

New

3:07

Border Radius

Border Radius

New

3:22

Box Shadow

Box Shadow

New

3:34

3D Styles

3D Styles

New

Intro to 3D

Intro to 3D

New

2:25

3D Perspective

3D Perspective

New

4:01

2D & 3D Transforms

2D & 3D Transforms

New

4:53

EFFECTS

EFFECTS

New

Opacity

Opacity

New

1:44

Filters

Filters

New

2:59

Cursors

Cursors

New

1:45

Responsive Design

Responsive Design

New

new course
CSS grid landing page tutorial (36min)

Lesson info

Lesson info

To succeed in web design, and with Webflow, it's vital that you understand how elements hierarchy affects styling and sizing. In this video, we’ll cover element hierarchy in three ways:

  1. ‍How objects nest inside one another (e.g.,  parents, children, siblings)
  2. ‍How text styling is passed down from parent to child
  3. ‍How the sizes of parent elements and child elements affect one another

Explore this project

Want to dig into the project featured in this video and see how everything is put together? We've included the full project we used when making this lesson, and we've shared the link right under this very paragraph.

View and clone this projectDownload lesson assets
Clone this projectDownload project assets

Transcript

Hierarchy is one of those funny words which came from the Germans. Literally translated from 15th-century text, it means: “website levels.”

In our Webflow projects, we’ll talk about hierarchy in three ways:

1. How objects nest inside of one another and become parents, children, siblings.

2. How text styling passes down through this hierarchy.

…and 3. How the size of parent elements and child elements can affect one another.

Let’s start with nesting.

Nesting is simply placing one object inside another. So if we have a section in our project and inside that we add a Heading, that Heading has now been placed or nested inside the section. We can see this really clearly over in the Navigator. We have the section…and we have the Heading.

Now our heading is a child element of the section. And if we add a paragraph in here? Maybe a button? They’re now children of the Section element, too. They’re siblings.

So what’s our hierarchy here? At the top level, we'll click Body, and our view will slide up to the top of the page. So that’s our top-level element.

And if we look immediately under that, all its child elements are slightly indented. That horizontal indentation indicates that they’re children (child elements of the Body). So to elements on this level, their parent element is the Body.

Now what about our new section? Well, we know it’s a child of the Body, but it’s also a parent element to the content we put inside. And that content is indented even more. That horizontal indentation indicates that these elements are children of our Section.

The second visual representation of this hierarchy, is accessible underneath the Canvas: in the bottom navigation. We can select any element, and quickly determine its relationship to its parent elements…all the way up to the Body.

Now it won’t show us sibling elements, for instance if we click on our new heading, it’s not going to show the paragraph or the button, but it will show its direct parent. And its direct parent. And just like in the Navigator, these elements are fully clickable, and we can access anything in that hierarchy.

That's nesting.

Up next is text styling. Not to be confused with textiling or tech styling.

So we’ve selected this page’s body. And if we start playing with some of our typography options, you’ll see they’ll pass right down. Now only typography styles behave this way: changes to typography styles on a parent element can affect its children, and in this case, its children's children. And that can go as deep as you want.

Now children can override these styles. For instance, we can select the section and go into the typography, and make some changes here. Notice how these changes are overriding the changes we made to our body. Children can override typography styling set by their parent. Let’s go deeper. Select our heading, adjust the typography on that. Same deal. Children can override these styles.

And the Style Panel gives us the most helpful tool ever when we’re trying to determine what’s going on. If we select an element and it’s inheriting a style? We can just press on the indicator and find out exactly where it’s getting that style.

That's hierarchy as it relates to text styling.

Finally, we have size.

Most elements are sized by the content inside them. For our section here, it has no defined value. And adding more content makes the section taller!

Parent elements can override the natural document flow, though — this can happen if we set fixed values. If we define a height, for instance. Or even a width.

Children affect the size of their parents; but giving a parent a set size can override the natural document flow.

So. Three aspects of element hierarchy we deal with in our projects:

We got nesting, where parent elements can contain other elements — child elements. We can see this in the Navigator, and on the bottom navigation under the Canvas.

We have text styling: passing down styling from a parent object to text in its children, or its children’s children.

And of course sizing. The size of a parent element can be determined by what’s inside. The parent’s child elements determine the size of the parent…unless we override that size on the parent.

And that…is element hierarchy as it relates to our projects.