Streaming live at 10am (PST)

Centering with Margin?


#1

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.


#2

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.


#3

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.


#4

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