문제

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