I am just starting out with responsive web design. I have a layout in 2 columns (sidebar and content).
<div class="main-container"> <div class="main wrapper clearfix"> <div class="con1"> <header> <h1>container 1 h1</h1> <p>text1</p> </header> <section> <h2>overview section h2</h2> <p> test</p> </section> </div> <div class="con2"> <header> <h1>container 2 article header h1</h1> <p></p> </header> <section> <h2>article section h2</h2> <p>text</p> </section> </div> <aside> <h3>aside</h3> <p>text</p> </aside> </div> </div>
Content received 2 div containers. On a small screen I want
Div1
Div2
On the big screen, I want them to swap places,
Div2
Div1
In my CSS, I now received the following media request:
@media only screen and (min-width: 768px) { .main div.con1 { float: right; width: 57%; } .main div.con2 { float: right; width: 57%; }
Is it possible to change the order around, and if so, how can I do this? Has anyone got a link to a good tutorial?
Thank you very much!
source share