Thoughts on how to make this bottom part?

nutrition part is confusing me how do i make it?
No description
9 Replies
Jochem
Jochem4mo ago
I'd use a DL
Code-S ♛
Code-S ♛OP4mo ago
whats DL?
Jochem
Jochem4mo ago
MDN Web Docs
: The Description List element - HTML: HyperText Markup Language | MDN
The HTML element represents a description list. The element encloses a list of groups of terms (specified using the element) and descriptions (provided by elements). Common uses for this element are to implement a glossary or to display metadata (a list of key-value pairs).
Jochem
Jochem4mo ago
I'm not 100% sure it fits semantically, it might be better to use a table
<table>
<tr>
<th>Calories</th>
<td>277kcal</td>
</tr>
...
</table>
<table>
<tr>
<th>Calories</th>
<td>277kcal</td>
</tr>
...
</table>
Code-S ♛
Code-S ♛OP4mo ago
ill try table how do i add the lines in between them? the previuos lines i made were using a div
Jochem
Jochem4mo ago
that's a terrible way to add a line... you can add border-bottom to the TRs
Code-S ♛
Code-S ♛OP4mo ago
whats the best way to add a line? borders?
Jochem
Jochem4mo ago
in this case, yes but otherwise it depends
Code-S ♛
Code-S ♛OP4mo ago
alr thnx thnx jochem it worked
Want results from more Discord servers?
Add your server