
How can I put box1 behind box2?

<div class="box2">username</div> -> position: fixed; 
<div class="box1">logo</div> -> position:relative;
				
                        
                            
                        
                        
                            On
                            
                            
                                                    
                    
                Try using z-index property.
The z-index property specifies the stack order of an element.
An element with greater stack order is always in front of an element with a lower stack order.
Note: z-index only works on positioned elements (position:absolute, position:relative, or position:fixed).
Refer following :
This should work: