Thursday, March 12, 2009

HTML Borders

The best way to create HTML borders is to actually use CSS (Cascading Style Sheets). Using CSS, you can create a border around any HTML element.

There are a range of CSS properties that you can use to define borders but the shorthand border property is the most concise way.

Below are some examples of what you can do with HTML, borders, and CSS.

Solid Border

This code results in:

HTML borders are best created with CSS.

Dotted Border

This code results in:

HTML border code - or should that read CSS border code?

Dashed Border

This code results in:

HTML border code - or should that read CSS border code?

Outset Border

This code results in:

HTML border code - or should that read CSS border code?

Inset Border

This code results in:

HTML border code - or should that read CSS border code?

Grooved Border

This code results in:

HTML border code - or should that read CSS border code?

Double Border

This code results in:

HTML border code - or should that read CSS border code?

Ridged Border

This code results in:

HTML border code - or should that read CSS border code?

Mixed Border

You can combine different border types and styles for each side of the HTML element.

This code results in:

Create borders for any HTML element.

No comments:

Post a Comment