GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • dash-email — email components for Dash
  • API
  • Changelog
  • Button & Link
  • Container & Section
  • Email Structure
  • Custom Fonts
  • Heading & Text
  • Rows & Columns
  • Email Builder
  • Getting Started
  • Full Templates

This view

  • Original page
  • New address

GeezerVison is showing email.2plot.dev — dash-email | Image & Divider

Image & Divider

Images with explicit dimensions and horizontal rules for separating content.


Media & separation

EmailImage renders an <img> with explicit dimensions — required for stable layouts since many clients block remote images by default. EmailDivider renders an <hr> for visual separation between blocks.

Source code:

# File: docs/image-divider/image_divider.py

import dash_email as de

component = de.Email([
    de.EmailBody(
        style={"backgroundColor": "#f6f9fc", "padding": "32px 0"},
        children=[
            de.EmailContainer([
                de.EmailSection(
                    style={
                        "backgroundColor": "#ffffff",
                        "borderRadius": "8px",
                        "padding": "32px",
                        "textAlign": "center",
                    },
                    children=[
                        de.EmailImage(
                            src="https://picsum.photos/seed/dash-email/536/200",
                            alt="Hero banner",
                            width=536,
                            height=200,
                            style={"borderRadius": "8px", "maxWidth": "100%"},
                        ),
                        de.EmailHeading("Hero images", as_="h3"),
                        de.EmailText(
                            "Always set explicit width/height and an alt text — "
                            "many clients block images until the reader opts in."
                        ),
                        de.EmailDivider(
                            style={"borderColor": "#dee2e6", "margin": "24px 0"}
                        ),
                        de.EmailText(
                            "EmailDivider renders an <hr> to separate content "
                            "blocks.",
                            style={"color": "#868e96"},
                        ),
                    ],
                )
            ])
        ],
    )
])

EmailImage

EmailImage

NameTypeDescription
idstring; optionalThe ID used to identify this component in Dash callbacks.
altstring; default ''Alternative text for the image.
heightnumber \string; optionalThe height of the image (number or string).
srcstring; requiredThe image source URL. Should be an absolute URL for production.
widthnumber \string; optionalThe width of the image (number or string like "100%").

EmailDivider

EmailDivider

NameTypeDescription
idstring; optionalThe ID used to identify this component in Dash callbacks.

Source: /components/image-divider

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.