+ 2

Please how do you make a row with two columns making only the first cell a particular colour.

3rd Aug 2018, 10:39 AM
Tunwase Ayobami
Tunwase Ayobami - avatar
3 Respostas
+ 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
3rd Aug 2018, 10:46 AM
Janning⭐
Janning⭐ - avatar
3rd Aug 2018, 11:08 AM
Meet Mehta
Meet Mehta - avatar
+ 1
/* CSS selector */ tr td:first-child { background-color: #123456; } /* Or */ tr td:nth-child(1) { background-color: #123456; }
3rd Aug 2018, 11:53 AM
Hoàng Nguyễn Văn
Hoàng Nguyễn Văn - avatar