html - How to clear content from a "position: fixed" element of variable height? -
i have header on web site, height of changes based on many server-side factors. has been requested header modified have fixed position, when user scrolls page, header remains @ top. using position: fixed
achieve effect. problem when header becomes tall, lays on top of of content (even when scrolled way top). can apply top-margin content div extend past header, mentioned earlier value of margin vary based on many factors not available css. there easy way tell browser render section of content below fixed layer?
i have tried applying clear
content, didn't anything. know in javascript, looking css-based solution.
i don't think it's possible. when assign position: absolute
or position: fixed
element, removed flow of document , it's dimensions no longer relevant siblings.
Comments
Post a Comment