Relative positioning of two divs
问题 I made this fiddle, I am expecting the red div to be positioned directly below the yellow one. They are not. How can I position both the div up and down relative to wrapper ? Guessing it should be simple, but I can't get it to work. I think I need to use relative . The 'bars' are time lines and 'float around' freely. HTML: <div class="wrapper" style="background:blue"> <div class="up" style="background:yellow"/> <div class="down" style="background:red"/> </div> CSS: .wrapper { width:50px;