The Yola Custom Panel Widget is an incredibly powerful tool. With this flexible widget alone, you’re able to build anything from a custom footer, an image with text overlay, or even a bar to span the width of your page.
But in order to use the Custom Panel effectively, you need to know the secrets behind spacing. Look no further. By the end of this post, you’ll be a Custom Panel pro.
Margin in web design is the amount of space that separates the widget you’re editing from any other widget on the page. For example, in the screenshot below, we’ve added 5 rem units (a unit of measurement used in responsive web design) to the top and bottom of the widget:
Pro tip: If you want your Custom Panel to run the entire width of your page, your body padding in Style Designer must be 0 rem units on the right and left.
While margin refers to the space around the widget, padding refers to the space within the the widget. For example, below you will see we’ve added 9 rem units to the top of our Custom Panel, 5 to the right, 5 to the bottom, and 5 to the left.
This keeps our text from touching the borders of our panel.
Pro tip: The extra spacing within the Custom Panel above aligning the text to the left-hand side was created by adding a Column Divider Widget within the Custom Panel:
Last but not least, content width. Content width allows you to decide how much of your Custom Panel you’d like your content to use.
For example, here is a website where content width is set to 100%, and the text spans the entire screen:
And here is the same site with the content width set to 1200 px units and the text is limited to a contained area:
Pro tip: It’s always a good idea to add at least 1 rem unit of padding to the right and left of your Custom Panel when using content width. This allows for space to be added when viewing your site on a mobile device.
As you can see, the design possibilities with the Custom Panel Widget are endless. What have you done with the Custom Panel on your site? Let us know in the comments below!