Jump to content

3 column ordering of div's


beanymanuk

Recommended Posts

Hi

 

I am trying to get a column layout to display 3 divs in different order depending the screen width using media queries

 

<div class="slot-0-1 feature homedrawdate">
<div class="block"><h2>Open for entries in</h2></div>
<div class="block">Sign up with facebook</div>
</div>

<div class="slot-2-3 feature homeimage">
<div class="block"><h2>Product Image</h2></div>
</div>

<div class="slot-4-5 feature">
<div class="block">
	<h2>Draw info</h2>
</div>			
</div>

 

when screen width is above 720px width I want the blocks to display in order they are above from left to right.

But when screen width is below 720px I want the middle div to display first, then the first once then the last one staying last.

 

ie Product Image - Open for entries in .. - Draw Info

 

Anyone got any suggestions of how I can achieve this?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.