Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
HTML
<div>

<div id="left">

</div>

<div id="right">
</div>

</div>


I have to create Panel in the left div and my other data is in second div.
my panel div is moving like it moves towards left. So , I want the second div to move with it towards left and when i move my panel back right div should also move. I have tried it with tables but is there nay way to do it with div's only without fixing width of div's.
Posted
Comments
Sergey Alexandrovich Kryukov 28-Jan-16 19:35pm    
Not clear. Right now, nothing moves. What do you mean by "moving"? Just change in fixed layout? Or animated move? Or move on some event? Interactive move? What?
—SA
Member 11491784 29-Jan-16 3:01am    
I have a sliding panel which slides towards left and this panel is in left div. And then I have right div. So, I want to slide the right div when left div slides towards left.
Sergey Alexandrovich Kryukov 29-Jan-16 10:39am    
On what event should it slide? Is it animation or not?
—SA
Mohibur Rashid 28-Jan-16 19:51pm    
The question is not clear enough. If it helps look into 'css float left and right'

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900