I'm facing an issue with a table I'm using for a shopping basket on my website. Everything seems to be working fine until I added a tfoot
element, causing the tbody
to not span 100% of the container's width.
I've been troubleshooting and suspect that the problem lies within the tfoot
, but I haven't been able to pinpoint the exact issue. I initially thought it might be related to the colspan
not functioning correctly on mobile devices because I had hidden one of the cells in the body, resulting in an uneven layout. However, that didn't resolve the issue.
Here is a link to the example for reference: https://codepen.io/moy/pen/KQJdbV
.page {
margin: 0 auto;
max-width: 1000px;
}
/*
* Basket table rules.
*/
/* CSS rules for the basket table... */
CSS and HTML code snippets...
Could someone assist in identifying the missing piece in my setup?
I want to display the content of 2 cells in the tfoot
side by side, with the text in the first cell aligned to the left and the text in the second cell aligned to the right. Does this alignment requirement affect the layout?