A classic two-column CV template built with Bootstrap 6 for a fictional senior financial analyst, Marcus Ellery. This printable resume layout puts contact details, skills, certifications and languages in a tinted sidebar and the profile, experience and education in the main column, for an online CV page or an A4 PDF.
How it works
The page root is .tcv-page with data-bs-theme="light". A sticky navbar lg:navbar-expand holds the section links in a Bootstrap 6 <dialog class="drawer drawer-end"> (the mobile menu) and the two page actions:
- Spacing toggle: a
btn-groupwith two Bootstrap 6 toggle buttons (label.btn-checkwith the radio inside). The script writesdata-tcv-density="compact"or"comfortable"on the root, and CSS custom properties such as--tcv-pad,--tcv-block-gapand--tcv-line-heighttighten or relax the whole sheet. The choice is saved inlocalStorage(insidetry/catch). - Download PDF:
[data-tcv-print]callswindow.print(). The@media printrules and@page { size: A4 }hide the toolbar and footer credit, remove the shadow and keep the two columns side by side.
The CV itself is .tcv-cv with a header and the .tcv-grid (sidebar .tcv-side, main column .tcv-body). The script formats every [data-tcv-amount] with Intl.NumberFormat (compact US dollars such as $2.4B), fills the skill bars from data-tcv-level and computes the "Updated" date relative to today, shown without a year.
Customization
- Change
--tcv-green,--tcv-green-2and--tcv-side-bgon.tcv-pageto rebrand the accent and sidebar; the--bs-primary-*values below them recolor the Bootstrap buttons. - Edit the compact values in the
.tcv-page[data-tcv-density="compact"]rule to make the compact mode tighter or looser. - Set
data-tcv-density="compact"inindex.htmlto start in compact mode. - Change
TCV_MONEYinscript.jsto another locale or currency (for examplede-DEandEUR). - Adjust
data-tcv-level="95"on each skill row to change its bar length, or remove.tcv-barfor a plain list. - Change
grid-template-columnsin the.tcv-gridmedia rule to make the sidebar wider or narrower.
Use cases
- Job seekers in finance, accounting or consulting: a clean online CV linked from applications.
- Personal sites: a resume page that also prints to a tidy A4 PDF.
- Career coaches and HR teams: a starting template for client resumes.
Accessibility
The CV is an <article> with real headings, a skip link and labelled sections. The spacing radios are native inputs with aria-labels and a visible focus outline, and changes are announced through a polite live region ([data-tcv-status]). The mobile drawer trigger keeps aria-expanded in sync. Skill bars are decorative (aria-hidden), and each skill also shows a text level such as "Expert".
Bootstrap 6 notes
The mobile menu uses the Bootstrap 6 Drawer instead of BS5 Offcanvas, buttons use btn-solid theme-primary and btn-outline instead of the old per-color button classes, and toggle buttons wrap the input inside label.btn-check. Built on 6.0.0-alpha.1, so alpha APIs can still change.
Usage notes
The footer credit links to WebDevSnippets and can be kept or removed. Fonts are Merriweather and Source Sans 3 from Google Fonts.