CSS BORDER-COLLAPSE - CSS3 Examples

CSS BORDER-COLLAPSE

Written by jon on 10:37 AM
The rendering of table borders is divided into two categories in CSS2 - “collapsed” and “separated”. This property specifies which border rendering mode to use. In the collapsed border model, adjacent table cells share borders. In the separated model, adjacent cells each have their own distinct borders
In the CSS2 collapsed border model, provision is made for resolution of cases where borders specified for adjacent cells differ and are in conflict:
  • If any shared border has a component where the ‘border’ is set to “hidden” for ANY of the sharing members, the common border should be unconditionally set to “hidden”.
  • If any shared border has a component where the ‘border’ is set to “none”, it can be overridden by any other border-sharing member carrying a renderable ‘border’ property value. If ALL border-sharing members specify a value of “none” for a border component, only then will the border be set to “none”.
  • If a shared border has a ‘border-width’ contention, (with no component having a ‘border’ value of “hidden” of course…), the largest border-width should be rendered.
  • If a shared border has a ‘border-style’ contention, the suggested priority should be used (decreasing from left to right): “double”, “solid”, “dashed”, “dotted”, “ridge”, “outset”, “groove”, “inset.”
  • If a shared border has a ‘border-color’ contention, the suggested priority should be used (decreasing from left to right): Table cell, table row, row group, column, column group, table.

Example
table { border: medium double red; border-collapse: separate; border-spacing: 9pt 4pt }

<table style=”border: medium double blue; border-collapse: separate; border-spacing: 9pt 4pt”>

Possible Values
Value Description
inherit Explicitly sets the value of this property to that of the parent
collapse Use the “collapsed borders” rendering model
separate Use the “separated borders” rendering model

Related Posts by Categories



Widget by John | Interviewghost
  1. 0 comments: Responses to “ CSS BORDER-COLLAPSE ”

RECENT COMMENTS

SUBSCRIBE TO CSS3 EXAMPLES

 Subscribe to css3 Examples via RSS
Or, subscribe via email:
Find CSS3 Examples Entries :