I'm using the Oslo site layout but each time I add an InfoPath form web part, it keeps increasing the left margin significantly (see green arrow below). Is there a way to change this? Thanks.

Before InfoPath form web part: enter image description here

After InfoPath form web part: enter image description here

1 Answer 1


This is a known bug, which has

Yet as of this date, the issue seemingly hasn't been fixed by MS.

It however can be reverted with a simple CSS adjustment. As working with SharePoint Online, probably the most effortless way to do this is to add a Script Editor Web Part to the page where you also have your InfoPath Form Web Part. To the Script Editor Web Part, add the following:

<style type="text/css">
    display: none;
    margin-left: 20px;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.