Centering with Margin?

Yes, I know I should always avoid it at all costs and use regular positioning settings, but with a site I am working on it, I need to use margin or padding to center my hero items. I know about moving stuff 50% down and then transforming it -50%.

I just need to know if it is possible.

If you mean vertical aligning, there is CSS property “vertical align”. http://www.w3schools.com/cssref/pr_pos_vertical-align.asp
You can use it in custom code CSS.

I see. Thank you for providing the link! However, I’ve done some experimenting and I think I found the solution. This is my backup, though.

1 Like

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