- This topic has 13 replies, 2 voices, and was last updated 3 years, 8 months ago by
David.
-
AuthorPosts
-
September 3, 2018 at 1:47 am #667177
Chris
Can I insert Padding left and right in section columns?
First column contentSecond column contentThird column contentSeptember 3, 2018 at 3:30 am #667276David
StaffCustomer SupportHi there,
i am not sure what column add-on you are using but looking at one of the pages i can see these classes:
.tmm .tmm_member
so you could target them with some CSS. Let me know.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 3, 2018 at 9:38 am #667622Chris
Hello, I mean insert padding for this columns: https://docs.generatepress.com/article/creating-columns/
September 3, 2018 at 9:53 am #667632David
StaffCustomer SupportYou could add your own class to make it clearer to style them e.g:
grid-style
<div class="grid-style grid-33 tablet-grid-33 mobile-grid-100 first-column"> First column content </div>
Then this CSS:
.grid-container .grid-style { padding: 15px; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 3, 2018 at 9:55 am #667636Chris
Great David, Thanks!!! π
September 3, 2018 at 10:01 am #667640David
StaffCustomer SupportYou’re welcome π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 3, 2018 at 10:26 am #667660Chris
David, is this padding for left or right?
.grid-container .grid-style {
padding: 15px;
}September 3, 2018 at 10:37 am #667674Chris
David, the padding is not working, see: https://www.beurstrading.nl/test1/
September 3, 2018 at 10:51 am #667679David
StaffCustomer SupportThat looks like Lightweight Grid Columns…… If so then edit the shorcode it outputs and add your class in there:
[lgc_column grid="25" tablet_grid="50" mobile_grid="100" class="grid-style"]Some content[/lgc_column]
Then strip back the CSS:
.grid-style { padding: 15px; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 3, 2018 at 11:00 am #667683Chris
David, I have put your code, but now there are no columns, see https://www.beurstrading.nl/test1/
September 3, 2018 at 11:03 am #667689David
StaffCustomer SupportEdited the above code – double quotes pasted in badly….
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 3, 2018 at 11:10 am #667692Chris
Yes, it works!π
I use this, is that good?
grid=”33″ tablet_grid=”33″ mobile_grid=”100″
And is this padding left or right?
.grid-style {
padding: 15px;
}September 3, 2018 at 11:56 am #667725Chris
David, it looks good! (I think?) π https://www.beurstrading.nl/test1/
September 3, 2018 at 4:49 pm #667905David
StaffCustomer SupportAwesome. So padding that would be all 4 sides.
You can do them individually: eg.
padding-left: 10px;
or you can do them as a set:padding: 10px 10px 10px 10px;
the 4 variables are Top, Right, Down, Left.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.