I’ve just purchase a template from the store, so I can drill in and take a look at how its put together so cleanly.
In the Navigator I keep seeing instances of “Wrapper” and I can’t for the life of me see a component called “Wrapper” so I can’t figure out how the designer has put it all together.
Not sure I’m being a num nuts, but can someone shed some light on it for me please?
Just to clarify further - a wrapper isn’t one of the Webflow pre-formatted components you might be thinking of like navbar, section, container.
It’s purely a box to contain some other boxes - and gets it’s name from you, the designer - you could call it a container or a holder - but very common to call them a wrapper.
But to clarify even more: use the component ‘div’, that’s what the designer of the template did. After that he gave it a class name ‘wrapper’ which can enclose all other kinds of divs, components, text blocks, headings etc. The component ‘div’ is actually an unstyled component (just like a ‘frame’ in InDesign) with no margins or padding or even unvisible styling
The section-component is also a div but has some styles given to it, just like a ‘container’ and a row.
Great way to learn - picking apart - reverse engineering!
If you can’t get an element to behave how you want - always look to see if it has a parent element that is controlling it’s styles - that often solves things.
I see this used in every template I look at, with it being named some variation of Wrapper, Page Wrapper, or Content. The thing I’ve yet to understand is what this is actually used for. Why not just add everything to Body?
@EricBerglund - You will know when you need one when you do. “Wrappers” help you break the structure up to overcome design challenges so you can deal with containers separately. You will see similar use on many internal repeating elements like cards.
Thanks for the response! I realize I wasn’t clear in my original post. I’m familiar with wrappers and the use cases you mentioned. I was referring though to the special, top-level wrapper that I see in every template I’ve come across that contains the entire page’s content as seen here
I can think of a few use-cases for this where maybe one wants to adjust overflow settings or something, but in general, I’ve just been using it since I see it in all these templates, assuming there must be a good reason but without having a deeper understanding as to its purpose.