Streaming live at 10am (PST)

Centering a rich text element

#1

I have a rich text element right after a div block but am unable to center it on the page even after trying alignment through flexbox. It just centers the content inside the element but not on the page. Attaching the before and after pictures.

1 Like
#2

Hey @muditk

Can you share your read-only link?

Piter :webflow_heart:

#3

Hi Piter

Here it is: https://preview.webflow.com/preview/mudits-portfolio-7a6781?utm_source=mudits-portfolio-7a6781&preview=1bbb76f7eca07e2b473f0cdd03501b5b

Thanks!

#4

The easiest way, would be to place the rich text element into an element that has width set, with margin auto on the left and right (centered).

A container element can be used since it is already set with a width and is centered.

Take a look at this video to learn more.