Site logo

Archived topic

How-To: Easy way to eliminate padding of container?

5 replies · Started by Tom on February 24, 2023

Viewing posts 1–6 of 6

Hi,

I am trying to figure out is there is a simple way to eliminate the padding of one container.

Desired Effect Here

I have tried different combinations of pulldowns to no success.
Have also tried container padding and margin to all zeros to test.

If this needs further clarification - let me know! Thank you!

Hi there,

can i see this on your site ?

See link below...

The page containers are "Contained"
The top page container - contains the video only.
The bottom page container contains everything else.

My solution works as desired - but I had to add 40px padding all around bottom container. Which - I was not sure if there wasn't a default pulldown combination that would accomplish same thing (more elegant then my solution)..

Thank you!

The method you used is perfectly fine and its probably the way i would do it.
The alternative method require using Negative Margins on a Container Block.
For example if the Top Left and Right Padding of the parent was 40px. Then a Container Block could have -40px Top, Left and Right Margins. Although its commonly used your method is cleaner and not hacky :)

Cool David, thank you. I double check to make sure technology hasn't passed me by with a different solution.

You're welcome - glad to be of help!

This archived topic is closed to new replies.