Archived topic
is there a "wrapper" to target for styling
5 replies · Started by Duncan on September 15, 2016
If my header, nav and footer are all contained, is there a div that contains the whole lot that I can target for styling?
For example, this site has a thin green border around all of the content, and a margin applied top and bottom.
Is there a way to achieve this with GeneratePress?
Thanks
OK, so I guess I could add borders to header, main content and footer separately to achieve what I want, but that wouldn't work if I wanted to use a box shadow.
So the question is still the same - is there a div that I can target for styling that wraps around the header, main content and footer (when they are contained)?
Thanks
Hi
I think this is what you are looking for https://generatepress.com/forums/topic/can-generate-press-create-frames/#post-118821
On step 3 where you add the css, you need top and bottom margins so this should be your complete css
.full-container {
box-shadow: 0 10px 10px #555555;
border: 5px solid #222222;
margin-top: 20px;
margin-bottom: 20px;
}
Thanks, Jamal :)
Not sure how I missed this topic, sorry Duncan!
Thanks Jamal! I never thought of using the hooks, but that solution is perfect!
Hey Tom, no problem - I'm amazed that you keep up with all these posts!
I'll catch the next one! :)