4 Replies Latest reply on Mar 18, 2015 1:23 PM by Zoze

    Dynamic content hided element doesn't removed from div

    Zoze Level 1

      Hi,

       

      I have some dynamic symbols horizontally

      eg

      .......

      symb.css({"background-size":"contain" , "position": "absolute", "left": i*86+"px", "top": "0px"

       

      the result is similar as below:

       

      Pen     Book     Pencil     Car     Food     Laptop

       

      if I hide the symbol Car and Food the result is as

       

      Pen     Book     Pencil                              Laptop


      it hides them but without bring the symbol Laptop left.


      How can the symbol Laptop moved to the hiden positions?


      If I use float instead position it give's me the result as:


      Pen    

      Book    

      Pencil    

      Car    

      Food    

      Laptop