• Is there a native Gutenberg way to horizontally center elements in a block?

    This question asking the same was closed without an answer.

    Note the word “Elements”. If you insert a paragraph you may center the text, but I am talking about elements, whatever the elements are.

Viewing 3 replies - 1 through 3 (of 3 total)
  • In HTML, there is block content and inline content. Text and images are by default inline content, which is centered using the text-align CSS property. This property is inherited by default.

    Thread Starter alvarofranz

    (@alvarofranz)

    Thanks, @joyously

    But the thing is, is there not a way to add the text-align CSS property right from the Gutenberg UI?. I am currently assigning a CSS class to the container and then adding the property to that class. But aligning content is a very basic functionality, that’s why I am surprised that there is no native Gutenberg way to make it happen.

    It is not surprising to me, since the block editor removed several formatting options that were standard in the old editor, in the quest for “blocks”.
    Like your other topics, if you want the developers to see your question, you have to open an issue in the Gutenberg repository.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Gutenberg Center align content in a column horizontally’ is closed to new replies.