resizing to create a viewport sized background image
I was looking at path.com today and liked their implementation of a
dynamically sized cover photo. If you check it out you will see that it
sizes nicely no matter your screen size.
I looked a little more into it and noticed the background image is
attached to the body tag. I also noticed the body appears to get its size
from the form element inside it, meaning the body itself it actually
shorter than the total page.
Does anyone know how they accomplish this?
No comments:
Post a Comment