Trying to bring two items closer together inside a grid on different rows
https://codepen.io/bsups/pen/yLGOZBL
At the bottom trying to bring the name Michelle Appleton and the date closer together. Im pretty sure I had it working last night, but decided to redo it because I wanted the button to be more dynamic rather than replace by new html. (I despise this Frontend Mentor layout)
I have tried all the justifies and align options, the elements height, and messing with margin.
6 Replies
You could set a line-height on the paragraph tags.
@bsups it's because your
body
tag has line-height: 2em;
on it, you would decrease the line height on the paragraph tags as choo said, i'd recommend doing so with a utility class since i gather you wouldn't want to target every paragraph on the website and it isn't recommended to target the tags specfically e.g. <p></p>
since they aren't meant to be used for styles. for example you could do this:
Would also work.
^
Thank you all. Sorry my brain was fried and forgot to look outside the box⦠or well div.
no worries!