Tagged: cornerstone
-
AuthorPosts
-
March 28, 2017 at 4:49 am #1422788
Hi X,
On this page (https://albertoaxu.com/bruidsjurken/bruidsjurken-princess-baljurk/) i want to change the output on mobile to two columns. I have used this css:
@media (max-width: 767px) { #x-section-2 .x-column { float: left !important; margin-right: 4% !important; } #x-section-2 .x-column.x-1-4 { width: 46%; } #x-section-2 .x-column.last, #x-section-2 .x-column:last-of-type { margin-right: 0 !important; } } @media (max-width: 767px) { #x-section-3 .x-column { float: left !important; margin-right: 4% !important; } #x-section-3 .x-column.x-1-4 { width: 46%; } #x-section-3 .x-column.last, #x-section-3 .x-column:last-of-type { margin-right: 0 !important; } } @media (max-width: 767px) { #x-section-5 .x-column { float: left !important; margin-right: 4% !important; } #x-section-5 .x-column.x-1-4 { width: 46%; } #x-section-5 .x-column.last, #x-section-5 .x-column:last-of-type { margin-right: 0 !important; } } @media (max-width: 767px) { #x-section-6 .x-column { float: left !important; margin-right: 4% !important; } #x-section-6 .x-column.x-1-4 { width: 46%; } #x-section-6 .x-column.last, #x-section-6 .x-column:last-of-type { margin-right: 0 !important; } } @media (max-width: 767px) { #x-section-7 .x-column { float: left !important; margin-right: 4% !important; } #x-section-7 .x-column.x-1-4 { width: 46%; } #x-section-7 .x-column.last, #x-section-7 .x-column:last-of-type { margin-right: 0 !important; } }
Now while this does work, notice the strange output in column 5 & 6. What am I missing here?
Cheers!
March 28, 2017 at 11:58 am #1423188Hi There,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks!
March 28, 2017 at 2:59 pm #1423397This reply has been marked as private.March 29, 2017 at 8:57 am #1424156Hi Tim,
Please change your code to this.
@media (max-width: 767px) { #x-section-2 .x-column.x-sm, #x-section-3 .x-column.x-sm, #x-section-5 .x-column.x-sm, #x-section-6 .x-column.x-sm, #x-section-7 .x-column.x-sm { float: left; width: 48%; margin-right: 4%; } #x-section-2 .x-column.x-sm.x-1-4:nth-child(even), #x-section-3 .x-column.x-sm.x-1-4:nth-child(even), #x-section-5 .x-column.x-sm.x-1-4:nth-child(even), #x-section-6 .x-column.x-sm.x-1-4:nth-child(even), #x-section-7 .x-column.x-sm.x-1-4:nth-child(even) { margin-right: 0; } }
Hope that helps.
March 29, 2017 at 10:11 am #1424246Hi Paul,
That works perfect! Thanks again for the best support ever:)
Cheers!
March 29, 2017 at 10:37 am #1424265Glad we were able to help you out.
Feel free to ask us again. 🙂
-
AuthorPosts