nfischer / framily-tree

:beers: An interactive family tree for Theta Chi fraternity
https://nfischer.github.io/framily-tree/
MIT License
7 stars 11 forks source link

Hold aspect ratio with CSS #17

Closed nfischer closed 5 years ago

nfischer commented 5 years ago

This uses CSS (padding-bottom) to hold the Network to the 3:2 aspect ratio (the ratio of the flag image), replacing the JavaScript code from before.

This might help resolve issue #16, but it's hard enough to reproduce that I'm not sure.

Issue #16

nfischer commented 5 years ago

padding-bottom seems to have good browser support: https://developer.mozilla.org/en-US/docs/Web/CSS/padding-bottom