# Embed inserts margin

**URL:** <https://talk.observablehq.com/t/embed-inserts-margin/8006>\
**Category:** Help\
**Created:** [June 6, 2023, 2:42pm UTC](https://talk.observablehq.com/t/embed-inserts-margin/8006 "2023-06-06T14:42:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jchrist](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@jchrist](https://talk.observablehq.com/u/jchrist)\
**Post date:** [June 6, 2023, 2:42pm UTC](https://talk.observablehq.com/t/embed-inserts-margin/8006/1 "2023-06-06T14:42:54Z")

</div>

when I embed the map of this notebook some margins appear that should not be there: [Heizen in Deutschland / RND | Observable](https://observablehq.com/@rnd/heizen-in-deutschland)

 ![observable_embed](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/9/9a689833d7191a9b5d0d68924ec96b68b0502a41.png)

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [June 6, 2023, 3:52pm UTC](https://talk.observablehq.com/t/embed-inserts-margin/8006/2 "2023-06-06T15:52:34Z")

</div>

By using the “Runtime with JavaScript” embed method you end up with the browser’s default styles, including a 40px margin on the left and right of `<figure>` elements.

If you want to use this embed method then it’s up to you to include a stylesheet (or style element) that applies your desired default styles. Note also that the _preview_ can not anticipate what the embedded cells will look like once you integrate the snippet into your own site.

---

<div class="post-metadata">

**Author:** ![jchrist](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@jchrist](https://talk.observablehq.com/u/jchrist)\
**Post date:** [June 7, 2023, 6:39am UTC](https://talk.observablehq.com/t/embed-inserts-margin/8006/3 "2023-06-07T06:39:14Z")

</div>

thank you, that fixed it
