body { margin: 0; }
* { box-sizing: border-box; }

html {
  overflow: hidden;
  width: 500px;
}
body {
  margin: 0;
  float:left; //shrink to fit
}
* { box-sizing: border-box; }

Update styling so that iframe body shrink-wraps to its content without scrollbars
Update styling so that iframe body shrink-wraps to its content without scrollbars
