22.06.2015 Views

Step by Step HTML5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

130 Chapter 8<br />

Applying a Border to a Paragraph<br />

You can apply a border style rule to almost any two-sided tag. Border style rules are used<br />

most commonly with regular paragraphs, but they also work with headings, lists, and<br />

even spans. You can also apply a border to a division () tag to differentiate one<br />

area of the screen from another, as you will see in Chapter 11, “Creating Division-Based<br />

Layouts.”<br />

Specifying a Border Style<br />

To select the line type for the border, use the border-style attribute along with one of the<br />

arguments listed in the table on the following page.<br />

Argument<br />

solid<br />

Example<br />

dotted<br />

dashed<br />

double<br />

groove<br />

ridge

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!