Border-color

From Frontal Wiki

Jump to: navigation, search
This page is PENDING

Contents

Purpose

This style sets the the color of a border around a visual element.


Value

A hexadecimal representation of an RGB color like "#RRGGBB" or the name of a color. By default, the color is set to black.

border-color: #FFFFFF;


Remarks

A border-width must be set before the border color can be set, and the color applies to all sides (top left bottom right) of a border.


Example

Here we have a div with an orange background and a blue border. Note that the border-width has also been set:

<style><![CDATA[
	document
		{
			background-color: silver;
		}
	div
		{
			width: 200px; 
			height: 200px; 
			margin: auto; 
			background-color: darkorange; 
			border-width: 4px;
			border-color: blue; 
		}
 
]]></style>
 
 
<div />


Can Be Applied To

This style can be applied to:

Personal tools
Get Adobe Flash player