← All elements
<article class="bp"><div class="m"><div class="r"><div><b>MNL</b><span>Manila</span></div><i>✈</i><div><b>NRT</b><span>Tokyo</span></div></div><dl><div><dt>Gate</dt><dd>B12</dd></div><div><dt>Seat</dt><dd>14A</dd></div><div><dt>Boards</dt><dd>08:40</dd></div></dl></div><div class="s"><em></em></div></article>About this card
A travel ticket with route codes, a dashed tear line with round notches, and a barcode made from gradients.
How it works
The ticket is split into a main part and a stub. Two radial gradients on the stub cut round notches where the parts meet, and a dashed top border draws the tear line. The barcode is a repeating linear gradient, and a drop-shadow filter follows the notched outline.
Ways to customise it
- Change the airport codes, gate and seat values.
- Edit the stripe widths in the barcode gradient.
- Change the notch size in the two radial gradients.
Good to know
The details are in a description list, so each label is paired with its value for assistive tools. The barcode is only decoration and will not scan.
Open an example, copy the HTML and the CSS, and paste them into your page. There is nothing to install and no JavaScript to load.