Skip to content

Commit 230357c

Browse files
committed
Added appropriate html for custormer table; also changed the background color of the table header to lightblue
1 parent bc50f24 commit 230357c

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

index.html

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@
99
<div>
1010
<h1>My Customers</h1>
1111
<script type="text/javascript" src="dist/bundle.js"></script>
12+
<table id="company-table">
13+
<tr id="table-block">
14+
<th>Company Name</th>
15+
<th>Status</th>
16+
<th>Created At</th>
17+
<th>Revenue YTD</th>
18+
<th>Account Executive</th>
19+
</tr>
20+
<tr>
21+
<td class="company-name"></td>
22+
<td class="comapany-status"></td>
23+
<td class="created-at"></td>
24+
<td class="revenue"></td>
25+
<td class="account-executive"></td>
26+
</tr>
27+
</table>
1228
</div>
1329
</body>
14-
</html>
30+
</html>

styles.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ table {
1616
By default, when you set borders on table elements, they will look pretty ugly.
1717
*/
1818
border-collapse: collapse;
19-
border: 3px solid purple;
19+
border: 3px solid lightblue;
2020
}
2121

2222
thead th:nth-child(1) {
@@ -42,4 +42,8 @@ th, td {
4242
/* nth-child is a pretty neat thing to use and is widely applicable in real-life projects. Reader is highly encouraged to do more reading on this. */
4343
tr:nth-child(1) {
4444
font-weight: bold;
45-
}
45+
}
46+
47+
#table-block{
48+
background-color: lightblue;
49+
}

0 commit comments

Comments
 (0)