Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Elxis 5.5 Calypso supports 2 factor authentication login with e-mail or SMS.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
About responsive divs
« previous
next »
Print
Pages: [
1
]
Author
Topic: About responsive divs (Read 2695 times)
armpouniotis
Sr. Member
Posts: 377
About responsive divs
«
on:
June 30, 2020, 15:40:35 »
Hi there !
I want the 1st div to be on top of the 2nd div (when screensize is less than 600px):
<div class="main">
<div class="mainLeft"><?php $eDoc->component(); ?></div>
<div class="mainRight"><?php $eDoc->modules('right'); ?></div>
</div>
Css:
.main{
width: 100%;
float: left}
.mainLeft{
width: 80%;
float: left;}
.mainRight{
width: 20%;
float: left;}
@media screen and (max-width: 600px) {
.mainLeft {
width: 100%;
}
.mainRight {
width: 100%;
}
}
Unfortunately, nothing happens
Any help ?
Christos
Logged
Christos Armpouniotis
webgift
Elxis Team
Hero Member
Posts: 4193
Re: About responsive divs
«
Reply #1 on:
July 10, 2020, 21:53:19 »
You could use a container (that contains these two divs) with display flex
and order these items using order property.
See this page:
https://css-tricks.com/snippets/css/a-guide-to-flexbox/
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
armpouniotis
Sr. Member
Posts: 377
Re: About responsive divs
«
Reply #2 on:
July 10, 2020, 22:52:46 »
Yes !
thank you very much !
Christos
Logged
Christos Armpouniotis
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
About responsive divs