+ 2
Please how do you make a row with two columns making only the first cell a particular colour.
3 Answers
+ 2
There are lots of way to do this.
The easiest way is to use CSS and give the first cell a class (or id), then give that class (or id) a particular colour.
You can also add inline styling to the cell in the HTML.
Either way, I'm assuming you already have the table set up. If setting up a table is also part of your question, then you can review this:
https://www.w3schools.com/html/html_tables.asp
+ 1
If this helps
https://code.sololearn.com/WW4xK0AFM48Z/?ref=app
+ 1
/* CSS selector */
tr td:first-child {
background-color: #123456;
}
/* Or */
tr td:nth-child(1) {
background-color: #123456;
}