• Homesearch
  • Collections
  • Sign in or create an account

Jan Pettersson

Web developer by day. Ninja at night.

  • Elsewhere
Most recommended

    Vertically center elements

    Vertically center elements larger than the parentA 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 Pettersson1 min read
    Latest

    Vertically center elements

    Vertically center elements larger than the parent
    Jan Pettersson1 min read

      This is my story

      My very first one
      Jan Pettersson1 min read