Boarders part 1

CSS Fundamentals
Properties
Borders
97
1/3
               

The border Property



The CSS border property allows you to customize the borders of HTML elements.
In order to add a border to the element, you need to specify the sizestyle, and color of the border. 
The example below shows how to add a solid green border to the paragraph.

The HTML:<p>This is an example of a solid border.</p>
The CSS:
p {
padding: 10px;
border: 5px solid green;
}
Try It Yourself

Result:
Tap Try It Yourself to play around with the code!

Comments

Popular posts from this blog

font-family part 1