BORDER COLOR
INTRODUCTION

by Florence W Deems




Just as for the border-width, the border-color will NOT work unless you also include the border-style FIRST.

A dotted red border
Border-width:10px

A double green border
Border-width:10px

The div in the head tag produces what looks like a table with rounded corners and a double border. But I had to use a table tag (with border="0") to get this centered on the screen. Please see the Border Radius tutorial link (below) for more info about this effect.

Remember to include a DOCTYPE tag, such as <!DOCTYPE html>
to start the page, or IE 8 might show peculiar results.




Border Styles Introduction ~ 2 ~ 3
Border Widths
Border Color Introduction ~ 2
Border Radius: Introduction ~ 2
Border Collapse Spacing ~ Pinning an Element
An older Border Playground from 2008


Visit these other Tutorials by Flo

Friday 28th of April 2017 03:53:57 PM



by

~~~

Tandem Tooters

Arbor Hosting