INFORMATICS

The Best

Przełącznik języka

This Site

CMS

Hardware

Uncategorised

useful sites

Databases

Emulators

Powershell

Storage Array

DNS

Antivirus program

Licznik

1.png9.png9.png5.png9.png9.png8.png
Today102
Yesterday765
This week1948
This month11947
Total1995998

Visitor Info

  • IP: 3.238.70.175
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online

4
Online

Tuesday, 19 January 2021 05:17

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