Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Center aligning the main content #98

Closed
8hantanu opened this issue May 8, 2019 · 3 comments
Closed

Center aligning the main content #98

8hantanu opened this issue May 8, 2019 · 3 comments

Comments

@8hantanu
Copy link

8hantanu commented May 8, 2019

In higher resolution screens the right-hand space feels quite empty when everything is left aligned.
I would like to center align the contents of the home page and the post page.
So, it should look something like this.

Home Page

Post page

How can I achieve the above? Thank you.

@mmistakes
Copy link
Owner

mmistakes commented May 8, 2019

Add margin-left: auto; and margin-right: auto; to the .inner element via CSS and it'll center those elements like you want.

.inner {
  max-width: $large;
  margin-left: auto;
  margin-right: auto;
}

ref: https://github.com/mmistakes/jekyll-theme-basically-basic/blob/master/_sass/basically-basic/_layout.scss#L59-L61

@8hantanu
Copy link
Author

8hantanu commented May 8, 2019

Thank you, that worked. BTW I really liked your tiny paintings. 😄

@mehulg25
Copy link

mehulg25 commented Oct 15, 2022

Hi!
How can I keep the logo image aligned to the left while making the content centre aligned?
@mmistakes @8hantanu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants