CSS for Table
Is there a way to get styled table using Primer CSS? I know, there is a component for React, but I do not use React, I'm using a Django.
Not really. But there are some table styles as part of the Markdown comments. Like these:
| Before | After |
|---|---|
| Cell 1 | Cell 2 |
| Cell 1 | Cell 2 |
You should get tables styled by adding a markdown-body class on a wrapper element. E.g.:
<div class="markdown-body">
<table role="table">
<thead>
<tr>
<th>Before</th>
<th>After</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
</tbody>
</table>
</div>
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days.
Instead of using Django's default templates, you can use it solely for creating APIs, and then employ React to build the frontend and interact with the API for backend functionality. This is the standard approach we follow to achieve the best framework for both frontend and backend.
I hope this helps!
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days.