Adding borders


show more Adding borders provides you with in-depth training on Web. Taught by James Williamson as part of the CSS: Core Concepts show less
please wait ...

Adding borders

Applying borders to elements is a fairly simple process, but the Border property syntax can be a little bit cumbersome. Let's explore the options we have when applying borders to our elements, and how to write the syntax efficiently. In this exercise, we will be working with the borders.htm file You can find that in the 05_05 directory. Again, very simple structure here, if I scroll down, I can see that I have the heading 1 and that's what we're going to initially apply a border to. And then I have all these paragraphs down here and they have classes that basically correspond to the different styles you can apply to borders, and we are going to take a look at those after we're done playing around with the syntax of the border declaration. Okay.

So I'm going to scroll up to my Styles here, and after the paragraph, I am going to go ahead and create a selector for h1. The first thing that I am going to do is I want to explore the verbose syntax of borders. There are actually ...

Adding borders
Video duration: 8m 57s 8h 52m Beginner

Viewers:

Adding borders provides you with in-depth training on Web. Taught by James Williamson as part of the CSS: Core Concepts

Subject:
Web
Software:
CSS
Author:
please wait ...