- This topic has 23 replies, 6 voices, and was last updated 7 years, 4 months ago by
Leo.
-
AuthorPosts
-
July 10, 2015 at 7:07 pm #120098
Christa Hutchins
Tom,
I’m using your lightweight grid columns plug-in. It looks like it is adding a lot of blank space after the columns before the next row of text. Is that something I can change?Feel free to point out anything else stupid I am doing!
July 11, 2015 at 12:11 am #120119Tom
Lead DeveloperLead DeveloperYou can adjust the amount of spacing below the columns with this CSS:
.lgc-column { margin-bottom: 1.5em; }
In your case, since you don’t have multiple rows of columns, you could do something like this:
.lgc-column { margin-bottom: 0; }
Let me know if that does the trick 🙂
July 11, 2015 at 7:39 am #120162Christa Hutchins
Ok, I tried to be a big girl and figure out by myself where to put that code, but I broke everything, had to delete the whole plug in and re-install! Can you tell me specifically where to put that?
July 11, 2015 at 9:45 am #120177Tom
Lead DeveloperLead DeveloperAh, I’m sorry!
This should help: http://generatepress.com/knowledgebase/adding-css/
July 11, 2015 at 12:19 pm #120194Christa Hutchins
I used Option 2 because I already had jetpack installed. I used the second one where you had the margin set to 0. It eliminated some of the space, but there is still more space than I wanted. I wonder if that is because I am using H1 in the next row? Maybe it has some spacing built in it?
Also, I used your option for margin-bottom=0. That means every time I use the grid, the spacing will be 0, right? I may be using a lot of columns and grids, so perhaps I need to change it to the 1.5em version?
Thanks for your help!
July 12, 2015 at 12:15 am #120312Tom
Lead DeveloperLead DeveloperIf you don’t want to take away the spacing on all columns, then you can delete that CSS you added, and use the style parameter built into the shortcode.
For example:
[ lgc_column grid="25" tablet_grid="50" mobile_grid="100" style="margin-bottom:0px;" ]Some content[/ lgc_column ]
I had to add spaces between the [ and the shortcode name for the forum, but there shouldn’t be a space.
The important part is the
style="margin-bottom:0px;"
.Add that to each column you want to remove the spacing from 🙂
July 12, 2015 at 6:52 pm #120513Christa Hutchins
Thanks for the help. I’m pretty happy with my site right now! Not bad for a first-timer on her own!
July 12, 2015 at 11:52 pm #120550Tom
Lead DeveloperLead DeveloperIt looks great! Great job! 🙂
September 30, 2016 at 9:01 am #230675Rylan Urban
Hey Tom How to I remove the spacing between columns, for just for one grid, not all of them.
I have a 33/33/33 each, with an image aligned to the center. But I would like to remove the padding between the columns so that they images touch each other.
Rylan
September 30, 2016 at 3:39 pm #230775Tom
Lead DeveloperLead DeveloperYou can wrap your columns in a div with a class, then do this:
.my-wrapper-div .inside-grid-column { padding: 0; }
September 30, 2016 at 3:56 pm #230781Rylan Urban
Can you show me how to do that here
September 30, 2016 at 3:59 pm #230786Tom
Lead DeveloperLead DeveloperPretty simple:
<div class="my-wrapper-div">Shortcode in here</div>
September 30, 2016 at 5:20 pm #230794Rylan Urban
Yes! Perfect
Thanks!
September 30, 2016 at 10:14 pm #230821Tom
Lead DeveloperLead DeveloperYou’re welcome 🙂
February 28, 2017 at 3:33 am #284952Tahala
Tom,
I love GeneratePress Premium.
This theme is the best I’ve ever used.I installed Lightweight Grid Columns Plugin,
And using 33%x3 and 50%x2.After this setting,I want to add some style on my grid appearance.
rounded border with solid line.
So I added this code into Child themes’s CSS,
.lgc-column {
border-radius: 15px;
border: 1px solid #73AD21;
background: #ffffff;
padding: 5px;
}And this is fine.
But
seperating each columnsWhen I added “margin” to the code above.
2nd and 3rd columns is located beneath the former column.So, Is there any solution?
-
AuthorPosts
- You must be logged in to reply to this topic.