CSS Border |
||||
48 views
The CSS border property gives you the option to specify the style and color of the border of an element. With this property, we now can create borders with nice effects, which can also be applied to any element. There are so many options how to use the property border:
CSS Border Properties
CSS Border widthThis property has the values medium thick and bold. You can also use a numeric value in pixels. CSS Border ColorThis property sets the color of four borders. The color values can be any of the three: hex code, rgb or the basic color name. CSS border example: table { border-color: rgb( 100, 100, 255); } td { border-color: #FFBD32; } p { border-color: blue; } text_border { text_border2 { border:1px; solid #BoBoBo; } text_border3 { border-top:1px; solid #BoBoBo; border-left:2px; solid #000000; border-right:2px; solid #000000; border-bottom:1px; solid #BoBoBo; } text_border4 { border-top-color:1px; solid #BoBoBo; border-left-color:2px; solid #CC0033; border-right-color:2px; solid #CC9933; border-bottom-color:2px; solid#0099FF; }
|
| « Javascript Tutorial | Lesson 1. Embedding JavaScript in HTML » |
| Posted on Friday, June 13th, 2008 at 7:56 pm under CSS For Beginners | RSS 2.0 Feed | |