- This topic has 10 replies, 2 voices, and was last updated 3 years, 11 months ago by
David.
-
AuthorPosts
-
April 8, 2019 at 7:44 pm #863459
Anil
hi
following css abolish grid space between 2 colums, how to have same grid space between 2 columns as on bigger screen size???
@media (max-width: 767px) .generate-columns-container>* { padding-left: 0; }
GeneratePress 2.2.2GP Premium 1.7.8April 8, 2019 at 8:00 pm #863464Anil
or how to disable this selector or override to have grid space…
April 9, 2019 at 2:39 am #863667Anil
please advise…
April 9, 2019 at 4:27 am #863755David
StaffCustomer SupportHi there,
The other CSS we provided, you have your media query, add this CSS Rule inside that:
.generate-columns-container>*:nth-child(even) { padding-left: 20px; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 9, 2019 at 9:13 am #864217Anil
Hi I added this, BUT it is showing grid space on first column also ???
April 9, 2019 at 9:15 am #864221Anil
Try to understand that this
@media (max-width: 767px) .generate-columns-container>* { padding-left: 0; }
causing the problem….
April 9, 2019 at 9:17 am #864223David
StaffCustomer SupportI updated the CSS above so it will only effect the right hand column.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 9, 2019 at 9:35 am #864239Anil
GREAT, IT WORKS.
WITH 2 COLUMNS BLOG SETTING, following code gives 2 kinds of appearance on tabs and mobile.
Checked at http://quirktools.com/screenfly/
Following code may be of help to anyone here:
@media (max-width: 1000px) and (min-width: 600px) { .post.generate-columns { float: left; width: 50% !important; } .content-area { width: 100% !important; } .generate-columns-container>*:nth-child(even) { padding-left: 20px; } .right-sidebar.separate-containers .site-main { margin: 20px 0 0 0; } .sidebar { float: none !important; width: 100% !important; overflow: hidden; left: 0; right: 0; } } @media (max-width: 1000px) { .separate-containers .inside-right-sidebar { margin-top: 0 !important; } }
Bye, and thanks again.
April 9, 2019 at 10:00 am #864268David
StaffCustomer SupportGlad to be of help. And thanks for sharing your final CSS
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 9, 2019 at 9:23 pm #864598Anil
David, I checked one column was wider and one smaller width, so i updated your css with following:
.generate-columns-container>*:nth-child(even) { padding-left: 10px; } .generate-columns-container>*:nth-child(odd) { padding-right: 10px; }
Actually grid space has to be equally divided between both columns.
Now, it is better than earlier one…. Bye.
April 10, 2019 at 5:27 am #864859David
StaffCustomer SupportGlad you got that resolved and thanks for sharing
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.