Here’s what I’d like to learn how to do with CSS.
I want a box:
I want the cards to be stacked directly on top of each over flat… Not vertically. that way I can use jQuery to tell the browser which card to show, and not have to reinject all the content.
I think GMAIL does something like this… You see an inbox, when you click a message it places the message on top of the inbox, keeping the inbox in the background.
Ideas?
Another way to distinguish a visible div from the hidden ones, would be by using e.g. the selector :first-child. Here’s an example where you hide one div by changing it’s position within the DOM tree and the CSS only let’s the first child be visible.