2 replies [Last post]
triplebit
triplebit's picture
Offline
Regular
Last seen: 1 year 33 weeks ago
Timezone: GMT+2
Joined: 2013-12-03
Posts: 22
Points: 40

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: 3 weeks 2 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

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: 2 years 14 weeks 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