Hacker News new | past | comments | ask | show | jobs | submit login

Awesome! On trend with the aesthetic.

How did you accomplish the responsiveness with such a flexible layout?




Not the creator, but looking at the source - everything is sized using 'rem' units. (Height, width, positioning of all the elements.) Kind of like using a percentage.

    style="height: 0.160992rem; width: 1.00383rem; left: 0.5rem; top: 0.273827rem; ..."
This can be used because `font-size` on the root html tag is set to the width in pixels of the screen - or 600px maximum.

And then font sizes for all the elements are specified individually.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: