1

I would like to set the webpart properties like height and width with JavaScript to fit content!

FYI: I don't know the web Part ID , I know the web part title

1

In SharePoint online, the web part will adjust the width and height to fit zone by default like the picture below.

enter image description here If you want to change the width and height of the web part, you could select “Yes” and type the value of the width and height when editing the web part.

  • I upvote it, Any update!!!!! To accept the answer – Chicago Mar 20 '18 at 8:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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