View static HTML and CSS directly inside PowerPoint and Excel. Save polished snippets with the document so status pages, briefs, mockups, and references stay in context.
Some Office documents need more than plain text or screenshots. HTML Viewer gives you a focused place to paste a self-contained HTML page and keep the rendered result beside the slide or workbook where the conversation is happening.
The add-in saves the HTML with the document and renders it in a sandboxed iframe, so the page stays portable without injecting your pasted HTML into the parent Office add-in page.
Use the same content add-in in slides and workbooks.
Reopen the file later and keep the pasted HTML source with the document.
Render HTML and CSS in a sandboxed iframe without running pasted scripts.
Open the editor, paste the source, save, and collapse the toolbar for more room.
Copy the HTML from the left column, paste it into HTML Viewer, and the add-in will render the same static page shown on the right. This snippet is self-contained: HTML, CSS, and content in one block.
Fixed-size HTML can waste space in a large frame and make text collide when the add-in is resized smaller. The two screenshots below show both problems.
Treat the iframe like the slide. Make the outer shell fill the viewport, then reserve a
flexible middle row with minmax(0, 1fr) so panels, charts, or tab content do
not push into footer content.
body {
margin: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
}
.slide-card {
width: 100vw;
height: 100vh;
display: grid;
grid-template-rows: auto minmax(0, 1fr) auto;
}
Put the important text sizes in CSS variables. Use readable clamp()
baselines for normal frames, then reduce only the necessary values in a short-height media
query.
:root {
--title-size: clamp(34px, 8.4vmin, 96px);
--body-size: clamp(18px, 3.2vmin, 32px);
--label-size: clamp(14px, 2.4vmin, 20px);
}
@media (max-height: 420px) {
.slide-card {
--body-size: 12px;
--label-size: 11px;
}
}
Yes. Put the CSS in a style tag inside the pasted HTML so the snippet stays self-contained.
No. HTML Viewer renders pasted source in a sandboxed iframe without script execution.
Yes. The add-in saves the HTML source in document settings so it is available when you reopen the file.
Avoid depending on private images or stylesheets unless everyone opening the file can access them.
Open HTML Viewer, paste a self-contained snippet, and keep the rendered page beside the Office content it supports.