html - How to horizontally slide divs, without position:absolute -
i have 2 panel view 1 panel visible @ given time. whenever panel disappears should slide right, , @ same time appearing panel should slide in left. whenever animate 1 div displays above other when should both on same line transitioning. container cannot have overflow-y property since divs might vary in length , same reason divs cannot position:absolute (since not know height). here fiddle @ regular speed
the css container
.selectedcontent { min-height:140px; padding:4px 10px; width:300px; background:white; text-align:center; overflow: hidden; position: relative; }
i slowed down fiddle can see divs display on top of each other , not side side. tried float them display inline did not work.
Comments
Post a Comment