- This topic has 19 replies, 3 voices, and was last updated 5 years, 4 months ago by
Tom.
-
AuthorPosts
-
January 7, 2017 at 10:38 am #261629
Michal Janata
Hello,
I have a problem with your Content Layout. I have set Separate Containers and Space Separating got 30 px. What should I set?thank you for the info
January 7, 2017 at 11:16 am #261642Tom
Lead DeveloperLead DeveloperNot too sure what you mean? Is the separating space not working?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 7, 2017 at 11:18 am #261644Michal Janata
Yes, separating space not working.
January 7, 2017 at 1:00 pm #261664Michal Janata
And one more thing. The problem to me appears only in Sections extension.
https://generatepress.com/downloads/generate-sections/It would not add to this extension.
January 7, 2017 at 1:17 pm #261665Leo
StaffCustomer SupportHi Michal,
Padding for each section can be adjusted in the Section Settings. Check out “Opening the Section Settings” here: https://docs.generatepress.com/article/sections-overview/
Let us know.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 7, 2017 at 1:32 pm #261670Michal Janata
have another problem. I want to have separate color sections. For example https://tancovani.skauting.cz/
And among those sections I want to be able to adjust the gap.
January 7, 2017 at 1:35 pm #261671Leo
StaffCustomer SupportYou can choose the Background Color for each section in Sections Settings as well.
Not quite sure what you meant by gap, did you try adjusting the top/bottom paddings?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 7, 2017 at 1:59 pm #261676Tom
Lead DeveloperLead DeveloperSeparate containers are ignored in Sections.
To add margin between sections, give your section a custom class, like “section-margin”. Then, add this CSS:
.section-margin { margin-bottom: 20px; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 7, 2017 at 1:59 pm #261677Michal Janata
This is a better example. I have a background image. A section on the home page.
https://sft.skauting.cz/ – no gap
https://sft.skauting.cz/aktuality/ – Gap operates. Offset from the menu and footersIt looks weird when the gap somewhere. And sometimes it is not.
January 7, 2017 at 2:01 pm #261679Tom
Lead DeveloperLead DeveloperAh, this should do it:
.sections-no-sidebars.generate-sections-enabled.separate-containers #main.site-main { margin: 10px 0; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 7, 2017 at 2:07 pm #261680Michal Janata
Super! And how to achieve the same 10px padding between sections?
.section-margin { margin-bottom: 20px; }
This is not working…
January 7, 2017 at 10:17 pm #261744Tom
Lead DeveloperLead DeveloperDid you add the section-margin class to the section you’re wanting to add margin to? https://docs.generatepress.com/article/sections-overview/
If you want it to apply to ALL sections, you can do this:
.generate-sections-container { margin-bottom: 20px; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 8, 2017 at 4:10 am #261817Michal Janata
I have a child themes. Whoever I put in my style.css and it does not work.
January 8, 2017 at 9:34 am #261880Tom
Lead DeveloperLead DeveloperTry making it more specific:
body .generate-sections-container { margin-bottom: 20px; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 8, 2017 at 10:04 am #261898Michal Janata
Still nothing. And I put it into style.css? Or settings for each section?
-
AuthorPosts
- You must be logged in to reply to this topic.