Wednesday, November 4, 2020

Resize Google Doc Container iframe embed code like this

 If you want to share a Google doc using the embedded iframe code but it doesn't fit right, then you can change the size of the container by inserting iframe height and width, like below. 


This is the code Google d

resize google doc embed iframe code

ocs provides to embed my doc


<iframe src="https://docs.google.com/document/d/e/2PACX-1vTkBE-Rt-5AhXlmeOY6LeRbWHT7aFLBmrNbge8qp7v_7Mg4giSAWF3igUe2e1kuemq5aD8j_MrJBrju/pub?embedded=true"></iframe>


You can see here where I added the body code (not necessary) and the height and width, in light blue: 

<body>

<iframe height="500"width="575" iframe="" src="https://docs.google.com/document/d/e/2PACX-1vTkBE-Rt-5AhXlmeOY6LeRbWHT7aFLBmrNbge8qp7v_7Mg4giSAWF3igUe2e1kuemq5aD8j_MrJBrju/pub?embedded=true"></iframe> 


</body>

No comments:

Post a Comment