ShaneO
Members
-
Joined
-
Last visited
Reputation Activity
-
ShaneO reacted to BrowserBugs in Responsive comparison tablesIn the example you gave that sort of collapsing is done with breakpoints and float. Note the card size doesn't change; that's their set size the rest floats and uses media queries to cancel the float i would hazard a guess.
<div class="image"> Image Here </div> <ul class="list"> <li>Point: 1</li> <li>Point: 2</li> <li>Point: 3</li> </ul> and css ...
.image { width:200px; height:100px; background:pink; float:left; } .list { background:green; margin:0; list-style:none; } @media all and (max-width: 600px) { .image { float: none; } } Fiddle Here.
Edit: You can multi stack side by side and float either way. Work out what the collapsed order would be, then work out which should float where and until when.
Extra Edit: Sorry also see they decide to dump the 'transfer fee' from display on smaller screens to keep a nice 3 x 3 layout. Also note each only has 3 bullet points, again fits their sweet spot. Remember to check the info you can rely on coming out a dataset, missing information or clients wanting to throw in an extra field can end up the proverbial in in the ass.
-
ShaneO reacted to BrowserBugs in Responsive comparison tablesI'd suggest looking into responsive tables, see https://css-tricks.com/responsive-data-tables/.