# Embed Margins: Visual Guide to Proper Spacing > A comprehensive demonstration of embed spacing for optimal readability **Published by:** [Meesh @ Paragraph](https://paragraph.com/@meesh-paragaph/) **Published on:** 2025-04-22 **URL:** https://paragraph.com/@meesh-paragaph/embed-margins-visual-guide-to-proper-spacing ## Content This guide illustrates the correct margin specifications between embedded content and various other elements. Each example precisely demonstrates the pixel measurements needed to maintain proper visual hierarchy and readability.Paragraph to Embed: 32pxThis paragraph precedes an embedded element. When transitioning from paragraph text to an embed, we use a 32px margin. This larger spacing acknowledges the significant visual shift that occurs when moving from text to embedded content. The 32px margin provides enough space for the reader's eye to transition between your content and the embedded external content.Paragraph on WarpcastWarm up with a delicious spicy Italian chicken sausage and barley soup! This hearty recipe from @galazio combines sausage, fresh veggies, and a smooth, creamy texture thanks to a perfectly tempered egg. Perfect for cozy nights in your kitchen! Check out the full blog post for details. https://paragraph.com/@galazio/spicy-italian-chicken-sausage-and-barley-soupFarcasterEmbed to Paragraph: 32pxParagraph on WarpcastWarm up with a delicious spicy Italian chicken sausage and barley soup! This hearty recipe from @galazio combines sausage, fresh veggies, and a smooth, creamy texture thanks to a perfectly tempered egg. Perfect for cozy nights in your kitchen! Check out the full blog post for details. https://paragraph.com/@galazio/spicy-italian-chicken-sausage-and-barley-soupFarcasterThis paragraph appears 32px below the embedded content above. When returning to paragraph text after an embed, we maintain the same 32px spacing to create symmetry in the document's vertical rhythm. Embeds create significant visual breaks in content, so the larger margin helps re-establish the reading rhythm when returning to text.Heading to Embed: 24pxHeading Above an EmbedParagraph on WarpcastWarm up with a delicious spicy Italian chicken sausage and barley soup! This hearty recipe from @galazio combines sausage, fresh veggies, and a smooth, creamy texture thanks to a perfectly tempered egg. Perfect for cozy nights in your kitchen! Check out the full blog post for details. https://paragraph.com/@galazio/spicy-italian-chicken-sausage-and-barley-soupFarcasterThe 24px spacing between a heading and an embed follows the same pattern as heading-to-content spacing throughout the document. This creates consistency while acknowledging that the embed is content that belongs to the heading above it.Embed to Heading: 40pxParagraph on WarpcastWarm up with a delicious spicy Italian chicken sausage and barley soup! This hearty recipe from @galazio combines sausage, fresh veggies, and a smooth, creamy texture thanks to a perfectly tempered egg. Perfect for cozy nights in your kitchen! Check out the full blog post for details. https://paragraph.com/@galazio/spicy-italian-chicken-sausage-and-barley-soupFarcasterNew Section Heading (40px above)The 40px spacing before a heading creates a clear section break, regardless of what content type precedes it. This consistent approach to section transitions improves content structure and readability, particularly when an embed concludes one section before moving to a new topic.List to Embed: 32pxThis list precedes an embedded elementWhen transitioning from a list to an embedWe use a 32px marginThis acknowledges the stronger visual break that embeds createParagraph on WarpcastWarm up with a delicious spicy Italian chicken sausage and barley soup! This hearty recipe from @galazio combines sausage, fresh veggies, and a smooth, creamy texture thanks to a perfectly tempered egg. Perfect for cozy nights in your kitchen! Check out the full blog post for details. https://paragraph.com/@galazio/spicy-italian-chicken-sausage-and-barley-soupFarcasterEmbed to List: 32pxParagraph on WarpcastWarm up with a delicious spicy Italian chicken sausage and barley soup! This hearty recipe from @galazio combines sausage, fresh veggies, and a smooth, creamy texture thanks to a perfectly tempered egg. Perfect for cozy nights in your kitchen! Check out the full blog post for details. https://paragraph.com/@galazio/spicy-italian-chicken-sausage-and-barley-soupFarcasterThis list appears 32px below the embedded contentThe increased spacing helps transition from third-party to native contentWhile maintaining the overall document flowEach content type receives appropriate spacing based on its visual weightCode Block to Embed: 32pxjavascript// Placeholder code const margins = { standard: 24, // text elements visual: 32, // images, tables, embeds section: 40 // headings, dividers }; console.log(`Embed margins: ${margins.visual}px`);Paragraph on WarpcastWarm up with a delicious spicy Italian chicken sausage and barley soup! This hearty recipe from @galazio combines sausage, fresh veggies, and a smooth, creamy texture thanks to a perfectly tempered egg. Perfect for cozy nights in your kitchen! Check out the full blog post for details. https://paragraph.com/@galazio/spicy-italian-chicken-sausage-and-barley-soupFarcasterEmbed to Code Block: 32pxParagraph on WarpcastWarm up with a delicious spicy Italian chicken sausage and barley soup! This hearty recipe from @galazio combines sausage, fresh veggies, and a smooth, creamy texture thanks to a perfectly tempered egg. Perfect for cozy nights in your kitchen! Check out the full blog post for details. https://paragraph.com/@galazio/spicy-italian-chicken-sausage-and-barley-soupFarcasterjavascript// Placeholder code const margins = { standard: 24, // text elements visual: 32, // images, tables, embeds section: 40 // headings, dividers }; console.log(`Embed margins: ${margins.visual}px`);Image to Embed: 32pxImage with captionParagraph on WarpcastWarm up with a delicious spicy Italian chicken sausage and barley soup! This hearty recipe from @galazio combines sausage, fresh veggies, and a smooth, creamy texture thanks to a perfectly tempered egg. Perfect for cozy nights in your kitchen! Check out the full blog post for details. https://paragraph.com/@galazio/spicy-italian-chicken-sausage-and-barley-soupFarcasterEmbed to Image: 32pxParagraph on WarpcastWarm up with a delicious spicy Italian chicken sausage and barley soup! This hearty recipe from @galazio combines sausage, fresh veggies, and a smooth, creamy texture thanks to a perfectly tempered egg. Perfect for cozy nights in your kitchen! Check out the full blog post for details. https://paragraph.com/@galazio/spicy-italian-chicken-sausage-and-barley-soupFarcasterImage with captionTable to Embed: 32pxTable headerTable headerTable rowTable rowParagraph on WarpcastWarm up with a delicious spicy Italian chicken sausage and barley soup! This hearty recipe from @galazio combines sausage, fresh veggies, and a smooth, creamy texture thanks to a perfectly tempered egg. Perfect for cozy nights in your kitchen! Check out the full blog post for details. https://paragraph.com/@galazio/spicy-italian-chicken-sausage-and-barley-soupFarcasterEmbed to Table: 32pxParagraph on WarpcastWarm up with a delicious spicy Italian chicken sausage and barley soup! This hearty recipe from @galazio combines sausage, fresh veggies, and a smooth, creamy texture thanks to a perfectly tempered egg. Perfect for cozy nights in your kitchen! Check out the full blog post for details. https://paragraph.com/@galazio/spicy-italian-chicken-sausage-and-barley-soupFarcasterTable headerTable headerTable rowTable rowEmbed to Embed: 40pxMultiple embeds in sequence need clear separation to be perceived as distinct elements:Paragraph on WarpcastWarm up with a delicious spicy Italian chicken sausage and barley soup! This hearty recipe from @galazio combines sausage, fresh veggies, and a smooth, creamy texture thanks to a perfectly tempered egg. Perfect for cozy nights in your kitchen! Check out the full blog post for details. https://paragraph.com/@galazio/spicy-italian-chicken-sausage-and-barley-soupFarcasterParagraph on WarpcastWarm up with a delicious spicy Italian chicken sausage and barley soup! This hearty recipe from @galazio combines sausage, fresh veggies, and a smooth, creamy texture thanks to a perfectly tempered egg. Perfect for cozy nights in your kitchen! Check out the full blog post for details. https://paragraph.com/@galazio/spicy-italian-chicken-sausage-and-barley-soupFarcasterThe 40px spacing between consecutive embeds creates sufficient separation to indicate these are distinct elements, preventing them from visually merging into a single unit.Divider to Embed: 40pxParagraph on WarpcastWarm up with a delicious spicy Italian chicken sausage and barley soup! This hearty recipe from @galazio combines sausage, fresh veggies, and a smooth, creamy texture thanks to a perfectly tempered egg. Perfect for cozy nights in your kitchen! Check out the full blog post for details. https://paragraph.com/@galazio/spicy-italian-chicken-sausage-and-barley-soupFarcasterNote the 40px spacing between the divider and the embed. Dividers signal significant breaks in content, so the larger margin helps establish a clear separation between sections.Embed to Divider: 40pxParagraph on WarpcastWarm up with a delicious spicy Italian chicken sausage and barley soup! This hearty recipe from @galazio combines sausage, fresh veggies, and a smooth, creamy texture thanks to a perfectly tempered egg. Perfect for cozy nights in your kitchen! Check out the full blog post for details. https://paragraph.com/@galazio/spicy-italian-chicken-sausage-and-barley-soupFarcasterThe 40px spacing from an embed to a divider creates a clear section break. This larger margin is used consistently for transitions between major content sections.Summary: Embed Margin SpecificationsThis visual guide demonstrates all embed margin specifications within our typography system:Text Elements to/from Embed:Paragraph to/from Embed: 32pxList to/from Embed: 32pxCode Block to/from Embed: 32pxHeading to Embed: 24pxVisual Elements to/from Embed:Image to/from Embed: 32pxTable to/from Embed: 32pxEmbed to Embed: 40pxEmbed-Specific Spacing:Embed to Caption: 12pxEmbed Caption to Next Element: 24px (except headings: 40px)Section Transitions:Embed to Heading: 40pxDivider to/from Embed: 40pxThese margin specifications create a balanced visual rhythm that enhances the reader's experience by:Providing appropriate transitions between native and embedded contentCreating clear separation between distinct embedded elementsMaintaining consistent document flowSupporting intuitive content hierarchyImproving overall readability and content integrationConsistent application of these spacing guidelines helps readers process embedded content more effectively while maintaining the overall flow of the document. ## Publication Information - [Meesh @ Paragraph](https://paragraph.com/@meesh-paragaph/): Publication homepage - [All Posts](https://paragraph.com/@meesh-paragaph/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@meesh-paragaph): Subscribe to updates ## Optional - [Collect as NFT](https://paragraph.com/@meesh-paragaph/embed-margins-visual-guide-to-proper-spacing): Support the author by collecting this post - [View Collectors](https://paragraph.com/@meesh-paragaph/embed-margins-visual-guide-to-proper-spacing/collectors): See who has collected this post