How make headers centered?

I want to make headers centered in edit mode.
I tried this code for header1

.markdown-source-view .cm-header-1,
h1 {
    text-allign: center;
    margin-bottom: 200px;
}

margin-bottom is not working too

what am I doing wrong?

2 Likes

These are my settings to center H1s:

/* EDIT MODE */

.HyperMD-header.HyperMD-header-1 {
    text-align: center;
}

/* PREVIEW MODE */

.markdown-preview-view h1 {
    text-align: center;
}
3 Likes

thank you very much

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.