From the course: CSS Shorts

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Text indents

Text indents - CSS Tutorial

From the course: CSS Shorts

Text indents

- [Instructor] Hi, this is Chris Converse, and in this episode, we'll use CSS to create indented paragraphs in our web page, and we'll even look at how to exclude the first paragraph item in each parent element. So if you'd like to follow along, download the exercise files, and we'll begin by opening the HTML file in a text editor. So once you have your HTML file open, you'll see that we have a link to a style.css file here in the head area. And then, inside of the HTML, we have a whole lot of copy, separated into an article and aside elements. If you open this up in a browser, you'll see all of the content here showing up in the layout. So to begin creating our text indents, let's go back to the exercise files, and let's open up style.css in our text editor. So inside of the CSS file, let's scroll down. Let's find the rule that targets the article element. Let's add a few returns. And let's target the paragraph elements inside of the article element, which in the layout is the left…

Contents