Formatting Issue

I have a problem formatting my submission for this topic

This is what it looks like it the view preview mode

And this is what it looks like in the post

The problem goes away when I remove the div. Does anybody know what could be causing this and how to fix it?

1 Like

Not sure if this is, but shouldn’t it be

<div align="center"><h1>Criteria</h1></div>
2 Likes

No, that didn’t work and removed the center formatting.

Hmmm.

<span align=center><h1>Criteria</h1></span>

Lol rip programming practices

1 Like

That didn’t work either, didn’t center it, but the h1 no longer applied to the rest of it

Try removing the stars “*”. Then try redoing the list again.

1 Like

Close the DIV and then close the H1. Or put the H1 inside of the DIV.

Add another blank line after the -----

3 Likes

Thanks @Chris_S @Kuba_Jaroszczyk and @luca1s. It seems discourse only likes it when it goes in the order of h1, div, and the kbd. It also has been o close like that with, kbd, div, and then h1. I experimented around a little bit and this was the only combo that seemed to work.

1 Like

I had this issue earlier. I think you just have to separate the div by leaving a 1 line gap from the h1. Also separate the “Criteria” bit from the div.

1 Like

Try this:
# <div align=center> Criteria </div>

Text


It will come out this.

Criteria

Text

3 Likes