Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

CSS - Tables

Googleplus Pint
#2
The border-collapse Property:
This property can have two values collapse and separate. Following is the example to show both values:

css:

table.one {border-collapse:collapse;}
table.two {border-collapseConfusedeparate;}
td.a {
border-style:dotted;
border-width:3px;
border-color:#000000;
padding: 10px;
}
td.b {border-styleConfusedolid;
border-width:3px;
border-color:#333333;
padding:10px;
}

HTML
<table class="one">
<caption>Collapse Border Example</caption>
<tr><td class="a"> Cell A Collapse Example</td></tr>
<tr><td class="b"> Cell B Collapse Example</td></tr>
</table>
<br />
<table class="two">
<caption>Separate Border Example</caption>
<tr><td class="a"> Cell A Separate Example</td></tr>
<tr><td class="b"> Cell B Separate Example</td></tr>
</table>
Hasan
Reply


Messages In This Thread
CSS - Tables - by Hasan - 06-28-2018, 09:53 AM
RE: CSS - Tables - by Hasan - 06-28-2018, 09:54 AM
RE: CSS - Tables - by Hasan - 06-28-2018, 09:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  CSS white-space Property Hasan 0 1,657 07-04-2018, 03:29 AM
Last Post: Hasan
  CSS - Links Hasan 1 2,289 06-28-2018, 09:47 AM
Last Post: Hasan
  CSS - Images Hasan 3 2,448 06-28-2018, 09:37 AM
Last Post: Hasan
  css text effect Hasan 9 2,643 06-28-2018, 09:34 AM
Last Post: Hasan
  Setting Fonts using CSS Hasan 7 2,501 06-28-2018, 09:30 AM
Last Post: Hasan
  Setting Backgrounds using CSS Hasan 1 1,545 06-28-2018, 03:31 AM
Last Post: Hasan
  CSS - Colors Hasan 0 1,652 06-28-2018, 03:23 AM
Last Post: Hasan
  CSS Syntax - Selectors Hasan 0 1,450 06-28-2018, 03:20 AM
Last Post: Hasan
  CSS Introduction Hasan 0 1,436 06-28-2018, 03:19 AM
Last Post: Hasan

Forum Jump:


Users browsing this thread: 4 Guest(s)