Grid - defining elements

Hi, I'm a beginner and I have a really trivial question. Is there any way to avoid writing p elements 17 times, but define them by grid?
7 Replies
aleksia
aleksiaβ€’9mo ago
Here's the code
clevermissfox
clevermissfoxβ€’9mo ago
You could use JavaScript to render the elements but it’s gonna take a lot longer to do so then writing <p> tags if that’s your concern
b1mind
b1mindβ€’9mo ago
You can also use grid areas with blank naming .
b1mind
b1mindβ€’9mo ago
oh but you need elements inside to do the boxes I didn't see your p styles If you are not going to actually have text inside a p either just use a <div> Another option is to use a HTML template language.
Chooβ™šπ•‚π•šπ•Ÿπ•˜
Grid still needs children. Text nodes don't count as separate children. Learn Emmet to generate the tags. https://docs.emmet.io/cheat-sheet/ Generating 17 paragraph tags with Emmet is as simple as:
p*17
p*17
aleksia
aleksiaβ€’9mo ago
Thank you all for your responses!
Want results from more Discord servers?
Add your server