[ARCHIVED] Adding bottom border to a table without CSS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm working on a finance/accounting course, lots of tables. I want to have borders on the bottoms of the rows only (so, only have horizontal lines). But I can't change the overall subaccount CSS because rules.
Is there a way to only add bottom borders using HTML code, not CSS? I'm ok applying the code to each cell or row individually if that's what it takes (but I'd rather not).
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @venitk ...
A Google search brought me to the following page: Create table with only bottom border in HTML - Stack Overflow.
I tried the following code snippet from that page in a Canvas page, and it worked as expected:
<table style="border-collapse: collapse;">
<tbody>
<tr style="border-bottom: 1px solid black;">
<td>Lorem</td>
<td>Ipsum</td>
</tr>
</tbody>
</table>
I hope this will be of some help to you. Sing out if you have any other questions...thanks! Take care...be well.
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.