• Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.
    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

HTML & CSS Auto position div under another

LenniCodes

New Coder
Sep 21, 2019
11
5
4
Hi! Ive got a problem... i have got two divs.. i want the second div to go under the first when the page becomes smaller.
So they wont overlap... Anyone any ideas how to place a div automaticly under the other one?
 

Master Yoda

Administrator
Administrator
Verified
Jan 2, 2018
1,717
431
95
Canada
codeforum.org
You could try using the media tag for css and when it screen reaches certain size then display:block; I believe! I’ll get back to you with this