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 paragraph with the main heading #525

Open
shreyaa-s-zz opened this issue Jun 5, 2020 · 4 comments
Open

Center aligning paragraph with the main heading #525

shreyaa-s-zz opened this issue Jun 5, 2020 · 4 comments

Comments

@shreyaa-s-zz
Copy link
Collaborator

shreyaa-s-zz commented Jun 5, 2020

When Center aligning a few lines of code along with a heading only the heading is center aligned. But this happens only for the main heading. The center aligning works fine for any other heading in between the content. GIF for reference:

simplescreenrecorder-2020-06-05_17 41 23

(test conducted on main branch)

I think this could be because of <center> tag being a block-level/inline element. The content is centered horizontally within its containing element. The possible problem could be that the first heading is not wrapped in the same element as the content body.

Update

When testing this in markdown mode and found out that center aligning in markdown and converting to rich text works fine but the heading is not rendered as heading, GIF uploaded :
simplescreenrecorder-2020-07-11_02 20 21

@cypherean
Copy link
Contributor

Was testing this in md mode and found out that center aligning in markdown and converting to rich text works fine but the heading is not rendered as heading, GIF uploaded :
simplescreenrecorder-2020-07-11_02 20 21

@cesswairimu cesswairimu added help wanted hackoberfest and removed review-me Ask reviewers for help labels Sep 28, 2020
@Goodiec
Copy link

Goodiec commented Oct 12, 2021

@cesswairimu can I work on this issue?

@cesswairimu
Copy link
Collaborator

Hi @Goodiec, sorry for the late reply. Yes please, we would love your help. thanks

@Goodiec
Copy link

Goodiec commented Oct 21, 2021

No problem @cesswairimu

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

5 participants