9. Padding & Margins

Learn how to create structure on your webpage using padding and margins for all elements and containers. Discover how to control the extra space between content and element boundaries, adjust positioning, and create overlap effects.


In the world of web design, the creation of a visually appealing and intuitive structure is integral to the user experience. Two primary tools to achieve this are padding and margins, applicable to all elements and containers such as columns and rows.

Padding involves introducing extra space between your content and the boundary of the element, be it a text box or an image. In your website builder, you have the flexibility to input values in pixels or percentages to determine the amount of padding. Generally, padding is linked, which means that all sides of the element will have equal extra space. If necessary, this linking can be undone to control each side's padding independently, providing you with the flexibility to design as per your needs.

On the other hand, margins play a critical role in positioning elements on the page. Unlike padding, margins usually aren't linked as they are often used individually. You can add space between the element and its bounding column or row by increasing the top margin. While the default limit may be 100 pixels, you can manually type a higher value to increase this space further.

An intriguing concept related to margins is negative margins, frequently used to create overlapping effects between elements. By dragging the value towards negative, elements begin to overlap, opening up a world of creative layout possibilities.

It's essential to remember that these styling features are available for all elements, columns, and rows. Even more crucial is to ensure that your design is responsive to different devices. After creating an elaborate design on your desktop, you need to style for tablets and mobiles independently. This responsiveness allows for optimal viewing and interaction experiences, making it easier for users to navigate and understand your website, irrespective of the device they use.

In conclusion, padding and margins are powerful design tools to structure your web page effectively. By understanding their function and playing around with values and effects, you can create a compelling and user-friendly website structure. Whether it's maintaining consistency in your design or creating intricate overlapping effects, padding and margins help you bring your creative vision to life.

👆 You’re all caught up