Click to See Complete Forum and Search --> : Applying a border to one side of a cell only
essjay_d12
02-16-2006, 12:43 PM
Hi, is it possible to apply a border line to say the left side of a cell? or to the right side and to the top and bottom??
but have control of which ones are on or off.
Thanks
toicontien
02-16-2006, 01:53 PM
All about borders: http://www.w3.org/TR/CSS21/box.html#border-properties
Gaurav Khanna
02-17-2006, 02:41 AM
using css u can do so.
Copy and paste the following code in u r css file and call the class in u td cell.
// for only top border of the cell
.topborder
{
border-top: 1px solid #000000;
}
// for only left border of the cell
.leftborder
{
border-left: 1px solid #000000;
}
// for only right border of the cell
.rightborder
{
border-right: 1px solid #000000;
}
// for only bottom border of the cell
.bottomborder
{
border-bottom: 1px solid #000000;
}