How to leave a space between elements in the same paragraph?
I was trying to do it from the frontend mentor challenges. I could not leave a space in the Nutrition section and I could not find how to do it. I attached the code I wrote and the result I got as a picture. Can you help me where I am doing wrong and what kind of perspective I need to do?
Note: I have been working on the web for 3 weeks and I am open to other suggestions.
5 Replies
you should probably use html table
Can't I solve this with CSS?
no, not without splitting the 2.
this kind of data is a nutrition table. You're even writing the word 'table' in the sentence above. And guess what, html has <table>'s. So... use it
I feel like I have to solve everything I encounter with css, which is stupid I guess.
thank you for your answer
Table is definitely the way to go. Also enhances your page's accessibility.