I'm attempting to print jukebox strips with designated corner markings. The code I have written generates the HTML page for displaying the strips, allowing users to then print them. Jukeboxes typically feature selection buttons labeled ABCDEFGHJK and 1234567890. To simplify loading the slots with the printed strips, I aim to include the designator in the corner of each card so that it is no longer visible once inserted. This method facilitates organizing the cut strips correctly within the slots.
However, my attempts at printing this designator have caused the text on the strip to shift, which is not the intended outcome.
The current state of my code appears as follows:
<!doctype html>
<html>
<head>
<style type="text/css">
.card {
width: 3in;
height: 1in;
background-image: url(http://www.videofrank.nl/images/jukestrip.jpg);
background-size: 3in 1in;
}
.line {
width: 3in;
height: 7mm;
text-align: center;
font-family: Georgia, serif;
}
.cardnumber {
font-size: 5px;
top: auto;
z-index: 100;
}
</style>
</head>
<body>
<table cellspacing="0" cellpadding="0">
<tr>
<td class="card">
<table cellspacing="0" cellpadding="0">
<tr>
<td class="line">Let It Be</td>
</tr>
<tr>
<td class="line">Beatles</td>
</tr>
<tr>
<td class="line">Yellow Submarine</td>
</tr>
</table>
<div class="cardnumber">H1<br>H2</div>
</td>
<td class="card">
<table cellspacing="0" cellpadding="0">
<tr>
<div class="cardnumber">J7<br>J8</div>
<td class="line">Bad</td>
</tr>
<tr>
<td class="line">Michael Jackson</td>
</tr>
<tr>
<td class="line">Liberian Girl</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
I've experimented with various combinations of position: absolute
and postion: relative
, but have yet to achieve the desired result.
Any suggestions on what modifications can be made?