INFORMATICS

The Best

How to change the background color in the table

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

Text automatically translated
How to change the background color in the table

Change the background color in the table, eg. In an article joomla execute command style = "background-color".

With this command you can change the background color of the entire table, row, or table cell.

<table style = "background-color: #fefefe;" border = "3" align = "left" bgcolor = "# fefefe">

<tr style = "background-color: white;">

<td style = "background-color: #fff;">

Entry bgcolor does not work! Correct entry - style = "bacgrgorund-color: #fefefe"

You can also make changes to the table using external style sheets in making appropriate pis in the css file.

table {background-color: #fff; }

tr {background-color: white; }

td {background-color: # f1f1f1; }

An entry in the CSS file:

td.tableColor {background-color: red; }

The entry in HTML:

<table>

<tr> <td class = "tableColor"> nr1 </ td> <td> nr2 </ td> </ tr>

<tr> <td class = "tableColor"> nr3 </ td> <td> nr4 </ td> </ tr>

</ table>

Search