I am working on a SharePoint online site where I removed the navigation, top bar etc using script editor and CSS, and added my own HTML page. However I there is a space between the page and the right scroll bar (as shown in the image below).

How do I remove it ?

enter image description here

closed as off-topic by Dikesh Gandhi, Gautam Sheth, wjervis, Robert Lindgren Dec 6 '16 at 15:06

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Programming questions not specific to SharePoint are off-topic here, but can be asked on Stack Overflow." – Dikesh Gandhi, Gautam Sheth, wjervis, Robert Lindgren
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Have you fixed width of HTML content? – Viraj Gorajia Dec 6 '16 at 7:38

Add CSS on page

    #contentBox {
        margin-right: 0px !important;
    #contentBox table table {
        padding: 5px 0px 10px 10px !important;
  • 1
    there is still a tiny bit more space in the left. updated the image in the question. – Rinu Dec 6 '16 at 8:35

using !important in CSS should be done with care


Will cover the whole viewport;

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