Home
search
Collections
Sign in or create an account
×
Upload an optional image.
Medium site navigation
Upload an optional image.
Jan Pettersson
Web developer by day. Ninja at night.
Following
12
Followers
3
Elsewhere
Follow
Most recommended
Vertically center elements
Vertically center elements larger than the parent
A common problem in web design is aligning elements vertically. There are already solutions out there that solves this. But none that I could find worked with a setup where the parent element was smaller than the one I wanted to align. So I set out to find a solution myself. Here’s how I solved it. Any feedback on how to make it better would be much appreciated. http://jsfiddle.net/k2S3B/1/ When creating this rough solution to a common problem, I took help from the ideas of this: http:…
Jan Pettersson
1 min read
Latest
Vertically center elements
Vertically center elements larger than the parent
Jan Pettersson
1 min read
This is my story
My very first one
Jan Pettersson
1 min read