CSS border-bottom-color Property






<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]
-->




CSS border-bottom-color Property



Previous
Complete CSS Reference
Next



Example


Set a color for the bottom border:



div {border-bottom-color: coral;}

Try it Yourself »


More "Try it Yourself" examples below.




Definition and Usage


The border-bottom-color property sets the color of an element's bottom border.


Note: Always declare the border-style or the
border-bottom-style property before the border-bottom-color
property. An element must have a border before you can change the color.
























Default value: The current color of the element
Inherited: no
Animatable: yes. Read about animatable
Try it
Version: CSS1
JavaScript syntax: object.style.borderBottomColor="blue"
Try it




Browser Support


The numbers in the table specify the first browser version that fully supports the property.




















Property
border-bottom-color 1.0 4.0 1.0 1.0 3.5







<!--
mid_content, all: [300,250][336,280][728,90][970,250][970,90][320,50][468,60]
-->





CSS Syntax



border-bottom-color: color|transparent|initial|inherit;


Property Values





























Value Description Play it
color Specifies the background color. Look at
CSS Color Values for a complete list of possible color values. Default color is the color of the element
Play it »
transparent Specifies that the border color should be transparent Play it »
initial Sets this property to its default value. Read about initial
Play it »
inherit Inherits this property from its parent element. Read about inherit




More Examples




Example


Set a color for the bottom border with a HEX value:



div {border-bottom-color: #92a8d1;}

Try it Yourself »



Example


Set a color for the bottom border with an RGB value:



div {border-bottom-color: rgb(201, 76, 76);}

Try it Yourself »



Example


Set a color for the bottom border with an RGBA value:



div {border-bottom-color: rgba(201, 76, 76, 0.3);}

Try it Yourself »



Example


Set a color for the bottom border with a HSL value:



div {border-bottom-color: hsl(89, 43%, 51%);}

Try it Yourself »



Example


Set a color for the bottom border with a HSLA value:



div {border-bottom-color: hsla(89, 43%, 51%, 0.3);}

Try it Yourself »



Example


Set a transparent bottom border:



div {border-bottom-color: transparent;}

Try it Yourself »



Related Pages


CSS tutorial: CSS Border


CSS reference: border-bottom property


HTML DOM reference:
borderBottomColor property




Previous
Complete CSS Reference
Next

Popular posts from this blog

Chat program with C++ and SFML

Function to Return a JSON Like Objects Using VBA Collections and Arrays

Will my employers contract hold up in court?