Centering images

(Rafael Solci) #1

Hi, i was loonking into more formmating options and stuck with a problem with centering things in a post.


Works nice on texts.

Like this

But when i put emoji or images within center tags, its breaks

This text is centered, and this emoji :D should be also centered

If i put an image link discourse doesn’t even embed the image.

Also, is there anywhere i can find the formatting options?


(Jeff Atwood) #2

Center should not be an allowed tag, anyway. @eviltrout can you make sure that’s not on the HTML whitelist please?

(Rafael Solci) #3

may i ask why?

center do something bad to de code or something? will be a way to center elements in the posts without this?

(Jeff Atwood) #4

It is unnecessary and irritating, like the blink tag. Markdown has no concept of centering.

(Luke Larris) #5

Does that mean centering text and other elements will not be available in Discourse?

(Sam Saffron) #6

It means that out-of-the-box we will not have it enabled. But, as always, on your forum your rules apply.

(Rafael Solci) #7

While not agreeing with the centralization be something annoying, I’ve read more about the definition of markdown and agree with you on that part.

Thanks of the information :smile:

(Robin Ward) #8
Sure, it's fixed now.

(Allen - Watchman Monitoring) #9

So - I’m trying to showcase an image in a post I’m making.

How does one go about centering an image in a discourse post?

(Kane York) #10

Text text text

Watchman Monitoring

Text text text

<div align=center><img src=""><br>Watchman Monitoring</div>

(Eric Trowbridge) #11

Works perfectly - thank you @riking!

(system) #12