How to make a global setting for all pages to set the margins (padding??) for left and right, in other words, for all pages?
I guess the question is irrelevant as no ideas shows up about this.
Spacing between blocs, between text and buttons, between title and text, text and images, images and buttons? It depends on what you want. Every bloc has a default padding that is globally set around all breakpoints. If you do not change this it will remain the same across all your pages.
If you want to set a “global” setting with custom margins or padding you could create a class and apply it to all the items yo want.
Yes I know Blocs has default sizes for all blocs. I want to be able to change, in this case, the left and right margins for all formats, so H1, H2 paragraphs etc so it doesn’t fall out to almost max browser widths, and here I would like to not be forced to attach a css on EVERY part in all blocs used on all pages, simply a global project setting for this.
By default blocs handles a 1140px grid, that should fit in most of today’s browsers. You could change that value (for example 90%) so every viewport will have 5% of margin on each side.
Thanks, chicuelo, this did the trick! My default setting for this project was 1440 px (I don’t think I changed/set that value instead of 1140 when started this project, or I forgot it) and now I changed it to a percentage value and it works for left & right margins.
And then, here comes next question in almost the same topic: Default for all blocs padding sizes seems to be “Large”. How to change that default value to something else (like medium or small)?
Glad to hear you could solve your issue.
I think you can’t set the a default padding. I also assume that every project requires different settings. But I think you could try placing all the blocs first and set the padding on xs, that will apply the same setting across all 4 breakpoints for each bloc.
If you want a definitive solution, you can create a bloc with for example 3 columns and set the custom padding you want on each breakpoint. Then add to the library template, and place that custom bloc instead the regular so you will always have the padding you set.
Thanks again, I will try that when needed.