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

When you want to add long blocks of text to your project, you can use either a paragraph element or a rich text element. In this video, we’ll cover all you need to know about paragraphs: 

  1. ‍Adding paragraphs
  2. ‍Styling paragraphs
  3. ‍Adjusting spacing between paragraphs
  4. ‍Formatting and styling text

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

Paragraphs — in many cases — contain most of the text on a given page.

We're gonna cover three aspects of creating and styling paragraphs: adding paragraphs to our project, adjusting spacing between paragraphs, and adding custom styling to our paragraphs.

When we go in and add a paragraph element — when we drag it into our project — it comes with placeholder text. We can double click and type any text we want, or we can paste in a paragraph from an external source.

Now what about something like this: multiple paragraphs. This happens a lot. And it’s a good practice to use a separate paragraph element for each paragraph. Like we have in this section right here. Each paragraph is a separate element. That may seem crazy at first. But a lot of it has to do with our next subject...

...which is adjusting spacing between our paragraphs.

And right here we have a paragraph element with multiple paragraphs inside. We can go in and hit enter a couple times after each of these paragraphs and it creates line breaks. But it's still a single paragraph element. And the challenge is that we don't have any simple way to adjust that spacing.

Now you could be saying: "Wait a second. Can't we hit enter a couple more times? Isn't that technically adjusting the spacing in between paragraphs?" Yes. That's technically adjusting the spacing in between paragraphs. But you're limiting yourself to these giant gaps that don't always look too great.

When you have separate paragraph elements? You can adjust spacing between those elements using margin.

Two ways we're going to cover this:

1. Since we haven't added a class to these paragraphs, their margin can be inherited from the All Paragraphs tag. So all we have to do is go in, and check out All Paragraphs. And we can make changes here like adjusting this margin. Adjusting the breathing room underneath each paragraph. This will change the default margin on paragraphs.

And 2. We can apply a class to our paragraphs to control the styling. Here we're making some changes on this paragraph. At any time, we can double click on that class and rename it (since we intend to reuse it). And once we're done doing that, we can apply it — the class — to other paragraphs. All we have to do is type in that class name, and we can see our styling apply to each paragraph.

That's spacing.

And technically, that's adjusting a style — specifically bottom margin — so let's get right into custom styling for our paragraphs:

Now you can override that default All Paragraphs margin. Create a new class for this paragraph, and we can call it Bigger Paragraph, because that's the plan. And on this class, we can make adjustments to styling so we can achieve the bigger paragraph look we're aiming for.

Once we're done making those style adjustments, if we go to another paragraph, we can add the same class to that, too. And it instantly inherits those styles.

And for more on styling, let's look at some of the inline options we have when we're editing a paragraph.

And if we double-click, and we're editing this paragraph, we can make a selection and apply bold. And we can make another selection and make that italic. And we can grab another one and make that bold and italic. And we can select another chunk and continue to apply styling inline. We can even do a link — just select and insert a link.

The final option when we're editing a paragraph is to wrap text — any text selection — with a span.

Wrap with a span gives us that full flexibility to style only part of our text in any text element. We can have a lot of fun with this. We can change the font itself — maybe we're looking to achieve a code style so we can select something monospace. We can go in and change font color, and make adjustments to all sorts of visual styles here. The point is: as we add and modify these style values, the text is staying inline. And we're only affecting the text we wrapped with a span.

And we can go on and on. We can go in and wrap even more text with a span. And we can style that selection as well. This time, we can create something unique and one-of-a-kind and other terms that mean the same thing.

Now this is an objective truth: our paragraph is a hot mess. We’ve randomly bolded and italicized and styled so much here. It’s nearly illegible. So how do we remove some of the formatting? Well it’s actually just as simple as creating those inline styles and links. Double click to edit the paragraph, make a selection, and clear formatting. It’ll remove what we added to that text. We can also select multiple examples of formatting and clear them all at once using the same method: clear formatting. Or, if we've just had it we can select all, and clear formatting for the entire paragraph. Clear formatting will remove inline styles, spans, and links.

And that's it! We can add paragraphs to our project, create separate elements for each paragraph to control the spacing, and we can style paragraphs to our heart's content.