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,556 07-04-2018, 03:29 AM
Last Post: Hasan
  CSS - Links Hasan 1 2,157 06-28-2018, 09:47 AM
Last Post: Hasan
  CSS - Images Hasan 3 2,271 06-28-2018, 09:37 AM
Last Post: Hasan
  css text effect Hasan 9 2,274 06-28-2018, 09:34 AM
Last Post: Hasan
  Setting Fonts using CSS Hasan 7 2,207 06-28-2018, 09:30 AM
Last Post: Hasan
  Setting Backgrounds using CSS Hasan 1 1,425 06-28-2018, 03:31 AM
Last Post: Hasan
  CSS - Colors Hasan 0 1,582 06-28-2018, 03:23 AM
Last Post: Hasan
  CSS Syntax - Selectors Hasan 0 1,378 06-28-2018, 03:20 AM
Last Post: Hasan
  CSS Introduction Hasan 0 1,358 06-28-2018, 03:19 AM
Last Post: Hasan

Forum Jump:


Users browsing this thread: 2 Guest(s)