Closed jeffreyeaton76 closed 8 years ago
Going to clone this down and play around with it. Stay tuned!
Awesome. Bear in mind the branch broke the CSS pretty bad but I figured I'd get to that later. If you want to see what it's supposed to look like the master is deployed here: http://jeffreyeaton76.github.io/war/
Made some progress in-person! Feel free to re-open this if you have more questions.
I am trying to make a stack of divs representing the actual stack of playing cards each player has in War. Each one should be offset by 1px each so it looks like a stack. I'm able to make the stack but they are not offsetting. My loop looks like this:
There is no special
left
ortop
values in the CSS for theplayer
class but I think the JS would override them anyways. My branch for this is: https://github.com/jeffreyeaton76/war/tree/div-stack and the code is on lines 37-42.