Switch to full style
HTML code examples
Post a reply

Table with separated borders

Sat Feb 25, 2012 10:44 pm

In this example we show example of table with border around the table itself and around its cells, and both borders are separated.

Code:
<html>

<
head>
  <
title>Table with separated borders</title>
   <
style type="text/css">
 

table.separate {
  
border-collapseseparate;
  
background-color:#6576CC;
  
border:3px solid #CC0000;
}
table.separate td
{
  
border2px solid #CC3311;
}
 
  </
style>
</
head>

<
body>
<
table class="separate">
  <
caption>Table with separated borders</caption>
  <
tr>
    <
td>Row 1 data1</td>
    <
tdRow 1 data2</td>
  </
tr>
  <
tr>
    <
td>Row 2 data1</td>
    <
td>Row 2 data2</td>
  </
tr>
  <
tr>
    <
td>Row 3 data1</td>
    <
td>Row 3 data2</td>
  </
tr>
  
</
table>

</
body>
</
html>
 




Post a reply
  Related Posts  to : Table with separated borders
 row highlight of table     -  
 Div Table with css row span     -  
 Creating table using div tag     -  
 Using table in latex     -  
 table creation     -  
 table row hover     -  
 hide cell in table     -  
 SQL RENAME TABLE Command     -  
 Get table column flag in php     -  
 JDBC Table Model example     -  

Topic Tags

HTML Table