• Resolved Juan Hernando

    (@unintended8)


    Hi Munir! Since the update from v.2.8.5 to the v.2.9 branch, there’s something wrong with margins. If you select a block -> margins -> advanced view, and you only fill, for example, the top margin, then the CSS that shows in the frontend will also fill the rest of the sides with 0.

    Till 2.8.5, if you only fill the top margin with 40px, it will compile the margin-top CSS rule and that’s all. But now it compiles to margin: 40px 0 0 for example. And that can generate big align problems for alignfull or alignwide blocks, because it can be overwriting the left and right margins with just 0.

    I’ve tried it in a clean install without any other plugin, using the Twenty Twenty Two theme. If you add a full width block and then apply just a top margin, it happens (in this default theme it’s not a problem because alignfull specifity is bigger, but you can see in the browser inspector that the result of your plugin class is not what expected).

    Could you take a look at it? Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem with margins’ is closed to new replies.