Register for InstructureCon25 • Passes include access to all sessions, the expo hall, entertainment and networking events, meals, and extraterrestrial encounters.
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.
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.
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.
Thanks, Chris, I think this will do the trick! I spent two hours trying to Google a code snippet that would work and came up with nothing. Hopefully it didn't take you that long. 🙂
Much appreciated
Didn't spend much time on it at all, really...maybe a minute or two? I just typed this in my Google search: bottom border table html, and I got a few good results right away. 🙂
To interact with Panda Bot in the Instructure Community, you need to sign up or log in:
Sign In
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.