javascript - How to put div under content when resize window? -


lets have simple html (+css) page header, 2 divs below (left , right) , footer below them. want make right div go under left 1 when resize window. have 2 examples of effect:

example #1 - simple example it's 100% thinking of , here another, more complicated too: example #2

how effect called? need javascript make it?

this effect called responsive web design uses media queries target specific device sizes.

you can learn more how use , work media queries watching these intro videos:

https://www.youtube.com/watch?v=tpmb7xhclo0

https://www.youtube.com/watch?v=f_fhyxuh_to

also, here great article can save lot of time , frustration:

http://css-tricks.com/snippets/css/media-queries-for-standard-devices/


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -