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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -