Centre horizontal

Hi, how do you centre horizontal without using flex box.


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

1 Like

Hey @RoseWebStudio,

Great question!

Margin: 0 auto; should horizontally center an element that has a set width.

This can be done be clicking the following in the display setting:

Hopefully this helps :nerd_face:

Thanks how about vertically? Cheers

1 Like

@RoseWebStudio - Oh, good question.

I found the following article helpful: 6 Methods For Vertical Centering With CSS - Vanseo Design

1 Like

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