My posts are currently arranged like this:
.
HTML looks like this:
<div class="center">
<ul>
<li>
<p>[User] posted: [content] at [date] (likes: [likes]) </p>
<button>like</button>
<button>dislike</button>
</li>
</ul>
</div>
Here's the css:
.center {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
min-height: 100vh;
}
li {
width: 20%;
display: inline-block;
list-style-type: none;
align-items: center;
align-content: center;
line-break: strict;
margin: 10px;
border-radius: 7px;
}
li p {
margin: 20px;
overflow-wrap: break-word;
}
Inspired by tumblr's design, how do I make it look more like this?