I am using align() from http://jeet.gs to position a div inside a fullscreened div, like so:
.fullscreened
position relative
display block
height 100%
width 100%
height auto
width 100vw
margin 0
min-height 100vh
.aligned
background-color white
align()
height auto
My problem is that the parent div does not resize when its child is bigger than full screen (the size of parent).
Docs say that align() does "aligning blocks relative to their container with position: absolute and fancy positioning and transform." My worry is that "absolute positioned elements are removed from the flow, thus ignored by other elements" (c). Therefore, logically, the parent fullscreened div would not grow with the size of child.
Is there a way around this in pure CSS or do I have to call this a downside of using jeet and fix with javascript?
What I am trying to achieve is having fullscreen containers that resize to bigger than fullscreen when content inside them is too big, like here: http://codepen.io/anon/pen/bxgyd
Is this a good design?