Left align posts
iborghoff opened this issue · 4 comments
Thanks for the really nice clean theme :)
I had a question regarding posts - Is it possible to align these to the left as the home page is?
Hi, thanks!
Yes, there is. In assets/main.css
at line 222
:
.post-body p,
.post-body li {
font-size: 16px;
text-align: justify;
line-height: 1.5;
}
Delete the text-align
property at line 225
.
Thanks for the reply :) But I should have been a bit more specific.
On the homepage (i.e. https://purelog.netlify.app) all of the "Recent posts" content is aligned to the left, but when clicking on a post (i.e. https://purelog.netlify.app/a-comprehensive-guide-to-self-learning) the content in then centered(?). This post content is the part I'm trying to change, so that it's aligned the same as "Recent posts".
The content of posts is not centered, it is justified by that text-align property above. If you remove that, then the post text will become left-aligned.
I managed to figure out the section I needed to change, I commented out the lines below :)
.post-entry {
margin: 0 auto;
}