My shopping cart table doesn't look good on mobile, so I'm playing around with positioning. Just to get things going, I've created the following code:
Now, I want the quantities to appear below the product name, but I'm guessing that is a discussion for another time. Right now, I have a problem: The second "product-quantity" cell appears in the same place as the first "product-quantity" cell, when it should be directly on top of "Here Comes The Sun."
Can someone please help?
Thanks.
Code:
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<style>
.product-quantity
{
position:absolute;
top:0px;
left:0px;
bottom:200px;
}
</style>
<table>
<tr>
<th>Product Name</th>
<th>Quantity</th>
</tr>
<tr>
<td>The Flint Lockwood Diatonic Super Mutating Dynamic Food Replicator</td>
<td class="product-quantity">
1
</td>
</tr>
<tr>
<td>"Here Comes the Sun"</td>
<td class="product-quantity">1</td>
</table>
</body>
</html>
Now, I want the quantities to appear below the product name, but I'm guessing that is a discussion for another time. Right now, I have a problem: The second "product-quantity" cell appears in the same place as the first "product-quantity" cell, when it should be directly on top of "Here Comes The Sun."
Can someone please help?
Thanks.