Course Technology Cengage Learning New Perspectives on HTML5 and CSS3, 8th Edition
Tutorial 4

CSS Borders

To add a border to a block-level element, apply the following border style:

border: width style color

where width sets the border width, style defines the style of the border, and color sets the border color using a color value or color name. Use the web form below to generate the CSS code for applying a border to the preview box.

Border Style Options

1px 30px

border: 10px rgb(128, 128, 128) solid;