Yes it is possible. There are several questions related to what you need to understand.
1) You use the fields. Sometimes the fields will be collapsed or deleted depending on the content. Have you tried using a gasket instead? You will get different results. I have no direct links other than Google, and make sure you understand the important differences between margins and indentation.
2) Learn about the boxes. If you do not know about the box model: border-box, you need to go through its study. Chris Coyer of css-tricks.com has an article about this. I point this out because it is directly related to issues like this.
3) display: block I donβt know for sure, but I think that perhaps: inline will be displayed by default. You can use any element and always make it act like a standard DIV block if you set the display: block as one of the properties. Again, Chris Coyyer has some great info on this. Please make sure that you have a deep assessment of the display: the rules and their reservations.
Just adding a display: blocking and using margins or indents will fix your problem. If this is not so, then something stupid is just missing me. I used to do this. In fact, I completely removed the tags from the Wordpress theme markup, using display: none to completely reformat the gallery output images.
source share