Tutorials Point


  CSS Beginners
  CSS Advanced
  CSS References
  CSS Resources
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

CSS2 Border Properties


previous next AddThis Social Bookmark Button


Advertisements

This is a complete reference guide for web developers where haved we listed all the CSS properties related to border defined in the World Wide Web Consortium's Recommended Specification for Cascading Style Sheets, Level 2

Click any property to see its description with examples:

PropertyDescription
border Sets all four of an element's borders; value is one or more of a color, a value for border-width, and a value for border-style
border-bottom Sets an element's bottom border; value is one or more of a color, a value for border-bottom-width, and a value for border-style
border-bottom-width Sets the thickness of an element's bottom border.
border-collapse Sets the table border rendering algorithm
border-color Sets the color of all four of an element's borders; default is the color of the element
border-left-color Sets the color of an element's left borders; default is the color of the element
border-right-color Sets the color of an element's right borders; default is the color of the element
border-top-color Sets the color of an element's top borders; default is the color of the element
border-bottom-color Sets the color of an element's bottom borders; default is the color of the element
border-left Sets an element's left border; value is one or more of a color, a value for border-left-width, and a value for border-style.
border-left-width Sets the thickness of an element's left border
border-right Sets an element's right border; value is one or more of a color, a value for border-right-width, and a value for border-style.
border-right-width Sets the thickness of an element's right border
border-spacing With separate borders set the spacing between borders. One value sets vertical and horizontal spacing and two values sets horizontal and vertical spacing respectively.
border-style Sets the style of all four of an element's borders
border-top Sets an element's top border; value is one or more of a color, a value for border-top-width, and a value for border-style
border-top-width Sets the thickness of an element's top border.
border-width Sets the thickness of all four of an element's borders


previous next Printer Friendly

Advertisements


  

Advertisements