Tagged: x
-
AuthorPosts
-
March 3, 2017 at 3:02 pm #1393750
logogloParticipantHi there:
https://llf-consulting.com/pricing-plans/
I have those 3 columns in a content band, within a 1 column center band, I have the class and css for the 3 clumns set to:
}
.one-third-no-spacing {
margin-right: 0;
width: 33.3333%;
}@media (max-width: 767px) {
.one-third-no-spacing {
width: auto;
}
}To remove the spaces.
This makes them all align to the left of the screen as you can see. How do I center this?
Also, how do I make the 3 columns stack on an ipad portrait? at the moment they shrink and stay as 3, would be great if they stacked on everything other than desktop, and ipad landscape.
Thanks.
March 3, 2017 at 10:52 pm #1394103
FriechModeratorMarch 4, 2017 at 8:57 am #1394416
logogloParticipantThe 3 price columns are not centered to the page, see the sentence above it, “choose” and “menu” and how the columns underneath line up.
Also, how do I make the 3 columns stack on an ipad portrait? at the moment they shrink and stay as 3, would be great if they stacked on everything other than desktop, and ipad landscape.
March 4, 2017 at 8:59 am #1394417
logogloParticipantsee attached.
March 4, 2017 at 11:32 pm #1394797
ChristopherModeratorHi there,
Please find this code :
.one-third-no-spacing { margin-right: 0; width: 33.3333%; }and update it to :
@media (min-width:767px){ .one-third-no-spacing { margin-right: 0; width: 33.3333% !important; } }Hope it helps.
March 6, 2017 at 1:15 pm #1396667
logogloParticipantThat didnt work, it made the images shrink on a mobile. Im more concerned about the alignment of the 3 image on the page, its still not centered…its aligning right…See the screenshot I attached.
I want the 3 columns to be centered.
On a tablet landscape it looks ok, but portrait, they shrink, I want them to stack as on a mobile device.
Please address both of the above issues.
Thanks.
March 6, 2017 at 9:27 pm #1397153
FriechModeratorHi There,
Please update your css code:
.one-third-no-spacing { margin-right: 0; width: 33.3333%; }To this:
.one-third-no-spacing { margin-right: 0; width: 33.3333% !important; }This is to make sure that the 3 columns divided the rows equally, this should center the images.
Then add this custom CSS to stack the images on mobile (including tablet portrait view).
@media (max-width: 768px) { .one-third-no-spacing, .one-third-no-spacing .x-img { width: 100% !important; } }Hope it helps, Cheers!
March 7, 2017 at 9:23 am #1397804
logogloParticipantThat worked perfectly, thanks!
March 7, 2017 at 10:06 am #1397863
JadeModeratorYou’re most welcome.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1393750 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
