Border Control with CSS
You can put a border around just about anything on your page and with CSS customize it to match your page's color combinations, draw attention to a particular element, or emphasize important points. You can change the settings.
#border{
border-style:solid;
border-color: red;
border-width:5px;
}
Unique sides
Think about how many wooden picture frames are constructed. When four separate pieces are connected, they form the top, right, bottom, and left sides of the frame. Just like you could glue together four pieces of wood with different colors and widths to make a picture frame, you can also create a border that looks different on each side. All you have to do is set the property of each of the different sides:
border-style:solid;
border-top-color:blue;
border-bottom-color:red;
border-left-color:yellow;
border-right-color:green;
border-width:20px;
border-top-width:10px;
border-left-width:10px;
border-right-width:30px;
I've uploaded the examples to the sever shared folder for css.
Find out more at: http://www.netmechanic.com/news/vol5/css_no5.htm
#border{
border-style:solid;
border-color: red;
border-width:5px;
}
Unique sides
Think about how many wooden picture frames are constructed. When four separate pieces are connected, they form the top, right, bottom, and left sides of the frame. Just like you could glue together four pieces of wood with different colors and widths to make a picture frame, you can also create a border that looks different on each side. All you have to do is set the property of each of the different sides:
- border-top
- border-bottom
- border-right
- border-left
border-style:solid;
border-top-color:blue;
border-bottom-color:red;
border-left-color:yellow;
border-right-color:green;
border-width:20px;
border-top-width:10px;
border-left-width:10px;
border-right-width:30px;
I've uploaded the examples to the sever shared folder for css.
Find out more at: http://www.netmechanic.com/news/vol5/css_no5.htm
Comments
border:1px solid red; which is equal to border: width style color