2 replies [Last post]
triplebit
triplebit's picture
Offline
Regular
Last seen: 11 weeks 2 days ago
Timezone: GMT+2
Joined: 2013-12-03
Posts: 15
Points: 26

I have two divs sharing the whole screen within a parent div.
I want to force the left one to drop bellow the right one.
I tried the following things:
1. to give both 100% width
2. to float both to the right

But nothing works.
Can someone raise a possible solution?
Thx

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 7 weeks 3 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5339
Points: 2960

Hi triplebit, We would need

Hi triplebit,
We would need to know how they are sitting beside each other now.
By default they would be one under the other, unless floated or display property changed.

mirkovogelsang
mirkovogelsang's picture
Offline
newbie
Last seen: 1 week 6 days ago
Timezone: GMT+2
Joined: 2017-05-15
Posts: 1
Points: 1

Flex

Check out:

display: flex;
flex-direction:column-reverse;

on a surounding element... Glasses