Remove left margin from wordpress gallery

390 Views Asked by At

I just started my first blog with wordpress. I'm customizing some of it's features but I can't find the css file for the default gallery block type.

Here can be seen the difference between image block and gallery block.

Thank you very much for answer.

2

There are 2 best solutions below

0
Hariom Singh On

There are padding left not margin. so you can use padding-left: 0

.entry-content ul:not(.entry-unordered-list){
  padding-left:0px;
}

5
Akash On

@Kjubu Welcome to stackoverflow !

In your style.css file search for the first occurrence of .wp-block-gallery in it's properties you will find padding: 0; already mentioned just change it to padding: 0 !important;.

You will get the desired output:

enter image description here