Posts tagged ‘Table’

CSS Tables,Borders and color setting

Table Borders

To specify table borders in CSS, use the border property.

The example below specifies a black border for table, th, and td elements:

Example

table, th, td
{
border: 1px solid black;
}

Notice that the table in the example above has double borders. This is because both the table, th, and td elements have separate borders.

To display a single border for the table, use the border-collapse property. Continue reading ‘CSS Tables,Borders and color setting’ »