Share via

Embedding a document from OneDrive

Tucker Sigourney 6 Reputation points
2022-06-04T16:49:56.803+00:00

(I was referred here from the Microsoft Answers forums.)

I'm embedding a file on a website using OneDrive's embed feature. Unfortunately, it looks silly when you view it on a mobile device, because the document's default zoom level leaves it too big to see all at once. I'd like to be able to set the zoom to 'page width' by default, but I can't figure out how to do that.

(Note—I don't mean the size of the window the document is in relative to the element on the webpage; I mean the size of the document itself relative to that window. So changing the "width" parameter in the embed code doesn't work.)

Microsoft 365 and Office | OneDrive | For business | Windows
0 comments No comments

1 answer

Sort by: Most helpful
  1. Emily Hua-MSFT 27,901 Reputation points
    2022-06-06T06:20:02.64+00:00

    Hi @Tucker Sigourney

    Welcome to Q&A forum ~

    According to your description, your request is unabled to be achieved by OneDrive self, OneDrive just generates a basic embed code of iframe.
    This request needs more help from HTML language, but please note HTML issues are not supported on Q&A forum at current time.

    Here are 2 similar threads, you can have a look.
    Is there a way to change the Iframe width vor the mobile and desktop view?
    How to change the width and height with an iframe and a mobile query?
    (Please Note: Since the web site is not hosted by Microsoft, the link may changed without notice. Microsoft does not guarantee the accuracy of this information.)


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.