Вопрос

I don't have access to my master pages but I've used the Content Editor web part to hide the sidebar on one page and I'd like to limit the page width.

Is there a code I can use in a Content Editor to limit the page width for that page alone?

-Christian

Это было полезно?

Решение

Assuming you want to limit the width of contents on the wiki page, you can add below CSS in your Content Editor web part(Which is added on the same page):

#contentBox {
    width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

Or

.ms-wikicontent {
    width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

You can specify the width according to your requirement instead of 800px.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top