Interior column border : td border « Tags « HTML / CSS

Interior column border


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css" media="Screen">
table {
  border-collapse: collapse;

#t1 * .c2 {
  border-left: 1px dotted black;

#t1 {
  border-top: 1px solid black;

<table id="t1"> 

    <tr class="r1"> <td class="c1">1</td> <td class="c2">2</td> </tr> 
    <tr class="r2"> <td class="c1">1</td> <td class="c2">2</td> </tr> 



Related examples in the same category

1.Shading border for table cell
2.Table cell border
3.Cell with no Border
4.Hidden, Removed Cells and Separated Borders
5.Hidden, Removed Cells and Collapsed Borders
6.Set td tag to have border: 1px solid black, width:6em
7.Use table cell border to highlight total
8.Table cell with dashed black border
9.Table border and table header, cell border border-left: 1px solid #fff; border-bottom: 1px solid #fff; border: 1px solid black; {border:1px solid black;} border-bottom: 1px solid #CDC1A7; border: 1px solid rgb(200, 200, 200); border: 1px solid crimson; border: 1px solid darkslateblue; border: thin solid black; border: 1px solid gold; {border:1px solid black;} padding:5px;border-style:solid;border-width:1px;border-color:#999999;
22.hover with border