Tagged: x
-
AuthorPosts
-
October 29, 2016 at 2:15 pm #1236104
Sara H.ParticipantHello!
About responsive breaks,
I add this code to solve my 4 column break into 2:
@media only screen and (min-width: 768px) and (max-width: 979px) {
.x-column.x-1-4 {
margin-right: 2%;
width: 48%;
}
}This works perfectly in my section with 4 columns but I also want to change my 3 column section into 2 then 1 in small devices.
thanks
October 29, 2016 at 2:17 pm #1236105
Sara H.ParticipantThis reply has been marked as private.October 29, 2016 at 11:59 pm #1236362
Rue NelModeratorHello There,
Thanks for writing in! To resolve this issue, please update your code and use this instead:
@media only screen and (min-width: 768px) and (max-width: 979px) { .cs-content .x-column.x-1-4, .cs-content .x-column.x-1-3 { margin-right: 2%; width: 48%; } .cs-content .x-column.x-1-3 { margin-bottom: 2%; } .cs-content .x-column.x-1-3:nth-child(2n) { margin-right: 0; } }Please make sure that each of the column will have the same height so that it will not messed up the layout.
Please let us know how it goes.
November 1, 2016 at 5:30 am #1238958
Sara H.Participantwell it works but it is messing up the layout. I guess its because of the size of some headings…
November 1, 2016 at 5:35 am #1238961
Sara H.ParticipantI just tested increasing the heading and it still messing up even with all content at the same size
November 1, 2016 at 5:36 am #1238962
ChristopherModeratorHi there,
Please update previous code to :
@media only screen and (min-width: 768px) and (max-width: 979px) { .cs-content .x-column.x-1-4, .cs-content .x-column.x-1-3 { margin-right: 2%; width: 48%; } .page-id-4 h3.h-custom-headline { font-size: 19px; } .cs-content .x-column.x-1-3 { margin-bottom: 2%; } .cs-content .x-column.x-1-3:nth-child(2n) { margin-right: 0; } }Hope it helps.
November 1, 2016 at 5:45 am #1238967
Sara H.ParticipantI attached a screenshot the last 2 services are messing with me
November 1, 2016 at 5:59 am #1238978
ChristopherModeratorHi there,
It’s because blocks are in same columns. Please add another row, split it into three columns and add last three blocks there.
Hope it helps.
November 1, 2016 at 6:08 am #1238983
Sara H.ParticipantHi, yes the blocks must be in the same columns otherwise will happen what is happening now.
November 1, 2016 at 6:11 am #1238988
Sara H.ParticipantIf I dont do in the same section it will give me gaps like a row with 2 items then 1 alone
November 1, 2016 at 6:26 am #1239005
ChristopherModeratorHi there,
Please add a text element and following code :
<div class="x-container"> <div class="x-column x-sm x-1-3">1</div> <div class="x-column x-sm x-1-3">2</div> <div class="x-column x-sm x-1-3">3</div> <div class="x-column x-sm x-1-3">4</div> <div class="x-column x-sm x-1-3">5</div> <div class="x-column x-sm x-1-3">6</div> </div>Please add following code in Customize -> Custom -> Global CSS :
.x-column.x-1-3 { width: 28.66666%; }Hope it helps.
November 1, 2016 at 6:43 am #1239016
Sara H.ParticipantHi Christopher first of all thank you for your effort but maybe I got it wrong.
I add a new section then I add the text with the code and also placed the code at global css its not working for me.
What I have at my global css regarding this topic is:
@media only screen and (min-width: 768px) and (max-width: 979px) { .cs-content .x-column.x-1-4, .cs-content .x-column.x-1-3 { margin-right: 2%; width: 48%; } .page-id-4 h3.h-custom-headline { font-size: 19px; } .cs-content .x-column.x-1-3 { margin-bottom: 2%; } .cs-content .x-column.x-1-3:nth-child(2n) { margin-right: 0; } } .x-column.x-1-3 { width: 28.66666%;November 1, 2016 at 8:05 am #1239100
Sara H.Participantplease help
November 1, 2016 at 8:09 am #1239104
JoaoModeratorHi There,
You should add the following code to Appereance > Customizer > Custom > CSS
There is also a missing } at the end of your code.
In case you still face issues, please provide your admin credentials in a private reply in order that we can take a closer look.
Thanks
Joao
November 1, 2016 at 12:38 pm #1239454
Sara H.ParticipantThis reply has been marked as private. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1236104 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
