skip to Main Content

enter image description here

Hi guys,
I had one frondend project based on antdpro (Ant Design Pro 5.0.0), when I add one page, the padding is default as above pic.

How could I remove these padding ?
Due to the space is not enough, I hope set the padding to 0.

BTW: the offical http://preview.pro.ant.design can find this situation as well, So I don’t provide my own test code.

2

Answers


  1. Chosen as BEST ANSWER

    As Gabriele Petrioli Said, the most direct method is adjust one parameter at app.js disableContentMargin: true

    enter image description here

    The another common way to resolve all css issue is said as Yash Jain. I can do it via follow pic enter image description here

    Thanks again to @Gabriele Petrioli and @Yash Jain


  2. Please set this margin to 0 and it will remove space around. Please check attach screenshot

    https://prnt.sc/9UJMKPnVuszr

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search