1 Replies - 5275 Views - Last Post: 04 August 2012 - 07:55 AM

#1 co0l  Icon User is offline

  • New D.I.C Head

Reputation: -2
  • View blog
  • Posts: 18
  • Joined: 10-May 11

Reorder divs to their original position if window size is > this v

Posted 03 August 2012 - 03:08 PM

Hi Everyone,
I need some help in reordering the divs to its original place when the window size is greater than some value.
so what I am doing is onresize i am getting window size and if window size is < 880px value than I am reordering divs.
Now I want to reorder those divs to their original size onresize and if window size is > 880px.
so can someone please help me with that?
I am using following example code:
var div1 = document.getElementById('div1');
var div4 = document.getElementById('div4');

var parent = div1.parentNode;

parent.insertBefore(div1, div4);


Thanks

Is This A Good Question/Topic? 0
  • +

Replies To: Reorder divs to their original position if window size is > this v

#2 co0l  Icon User is offline

  • New D.I.C Head

Reputation: -2
  • View blog
  • Posts: 18
  • Joined: 10-May 11

Re: Reorder divs to their original position if window size is > this v

Posted 04 August 2012 - 07:55 AM

Anyone? Please help.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1