Web Dev full-stack [LAMP] since 2005, but much heavier on the JS stuff these days.
Jack of all Stacks, Master of some.
Always looking to learn new things. Always glad to help out, just ask.
Location
Atlanta, GA
Education
B.S. in Biochemistry 2004, M.S. in Computer Information Systems 2007
Those methods are not bad and they work fine.
However with a title like CSS 3, I expected something with Flex or Grid instead as both your options have been around since CSS 2.
Those methods are not bad and they work fine.
However with a title like CSS 3, I expected something with Flex or Grid instead as both your options have been around since CSS 2.
Here's how to do it with flex:
philipwalton.github.io/solved-by-f...
To summarize, put these rules on the parent:
That's it.
It's very similar with CSS Grid:
coryrylan.com/blog/how-to-center-i...
By putting this on the parent: