Build a Print-Ready Single-File HTML Resume With Clean CSS Print Rules
Create a lightweight HTML resume that works both as a live shareable link and exports cleanly to a crisp single-page PDF using @media print.
Most resumes start in heavy word processors or rigid design templates where nudging one bullet point breaks page two. Writing your resume in semantic HTML and CSS solves that problem permanently: your layout stays crisp on screen, updates in seconds, and exports cleanly to PDF via your browser's native print dialog.
Even better, hosting the single HTML file gives recruiters a fast, mobile-friendly web link alongside your PDF copy.
Live single-file HTML resume demo
Inspect the layout below, switch to Source to read the @media print rules, or fork our full Developer Resume template.
Four CSS rules that make Print-to-PDF look professional
1. Strip screen shadows and outer padding inside @media print
Rounded borders and grey page backgrounds look polished on a laptop screen but waste ink and shrink printable width on paper. Reset body background to #fff, remove box shadows, and set @page { margin: 14mm; } so the browser controls page margins cleanly.
2. Avoid splitting a role heading from its bullets
Add break-inside: avoid; on individual .job blocks so a company title never lands at the bottom of page one while its bullets spill onto page two.
3. Keep link URLs explicit in plain text
When someone prints an HTML resume or converts it to PDF, hidden hover links (Portfolio) lose their destination unless the visible text already reads cleanly (github.com/taylor).
4. Test both 390px mobile view and Print Preview
Hiring managers often tap resume links on their phone first, then print or download on desktop later. Testing mobile width in the Playground and checking Print → Save as PDF ensures both formats hold up.
Typography, spacing, and ATS readability tips
Writing your resume in semantic HTML also makes it far easier for Applicant Tracking Systems (ATS) and screen readers to parse accurately compared to multi-column graphics exported from design tools:
- Use real heading tags (
<h1>,<h2>) and<ul>lists: Avoid<div>-only layouts with fake bullet characters. Real semantic headings give assistive technology and parsers an unmistakable outline. - Stick to a single column on print: Two-column resumes look compact in screenshots, yet frequently scramble reading order when parsed into text or wrapped on narrow phone screens. A clean single-column layout scales from
390pxmobile all the way to A4 and US Letter paper effortlessly. - Control color contrast in grayscale: Recruiters sometimes print resumes on monochrome office printers. Test your accent color by checking whether headings remain crisp even when printed in black and white (
#18181bbody text and#4f46e5or#334155section labels work reliably). - Avoid
vhunits inside printable pages: Usingmin-height: 100vhon a resume container looks centered on desktop monitors, but often forces an awkward blank second page during PDF export. Keep layout heights natural (height: auto) so content flows onto exactly one or two clean pages.
Keeping one live link alongside your PDF
Traditional resume files go stale the moment you attach them to an email. Hosting a single-file HTML resume gives you a canonical URL you can update whenever you ship a new project or adjust a metric—and whenever an application portal insists on a .pdf upload, simply press Cmd/Ctrl + P in Chrome or Safari and export Save as PDF directly from the live page.
Try customizing our Developer Resume template or pair it with a matching Link-in-Bio page for your portfolio header.