Modern HTML and CSS
With Grid, Subgrid, scroll-snap, modal dialog and more
I recently built a fairly complex component in HTML, CSS and JavaScript. It is called the Package Comparer for a client named Sazas. It involves some modern CSS which otherwise made this layout hard or impossible to build.
The design




The main requirement: alignment
One of the main requirements was that the rows would align vertically, so the comparable information aligns on the same height. On a small screen, 2 of the three rows are off-screen, so if you scroll to them, you can easily compare the properties.
(This blog is not finished yet)