css - Fixed element below fixed element without JS -


is there way put fixed element below fixed element (which height not specified - determined size of text inside it) wihout using javascript?

for example:

<div id='1'></div> <div id='2'></div>  #1 {    position:fixed;    width:100%;    height:auto; }  #2 {    position:fixed;    width:auto;    height:auto; } 

so how put #2 below #1 without $('#2').css({'top':$('#1').outerheight()});

put 2 divs inside container div , set 1 fixed.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -