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

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

Change the color of an oval at click in Java AWT -