html - Make two divs side by side where one has position fixed -


so have 2 divs this

<div class="parent">   <div class="child1"/>   <div class="child2"/> </div> 

child1 position: fixed, , want child2 , child1 side side.

i've tried using inline-block, doesn't work. should do?

enclose elements should fixed in container, set container position:fixed, , position children accordingly. perhaps float:left , float:right.

<div class="parent">     <div class="fixed-container">       <div class="child1"/>       <div class="child2"/>     </div> </div> 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -