Hi again,
You can manage it with CSS by following the above method shared by Alaa. Give all of your sections a class e.g custom_margin and then using different breakpoints you can manage the margin easily, e.g for large desktop screens you can use the following code:
@media screen and (min-width: 1280px){
.x-section.custom_margin {
margin: 10px 20px 30px 40px;
}
}
For medium screens you can use the following code:
@media screen and (max-width: 1279px) and (min-width: 768px){
.x-section.custom_margin {
margin: 10px 20px 30px 40px;
}
}
For mobile devices, you can use:
@media screen and (max-width: 767px){
.x-section.custom_margin {
margin: 10px 20px 30px 40px;
}
}
If you would like to learn CSS, I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.
I recommend you to watch following video that will help you to get started with CSS.
https://www.youtube.com/watch?v=MFR4WXiLzpc
Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.
https://developers.google.com/web/tools/chrome-devtools/css/
https://developers.google.com/web/tools/chrome-devtools/
https://www.youtube.com/watch?v=tP_kXBJWPhQ&t=200s
Hope this helps!