Created
May 11, 2015 03:42
-
-
Save StoneCypher/b525fb924b5e076ebd3a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html> | |
| <head> | |
| <style type="text/css"> | |
| html { margin: 0; border: 0; padding: 0; } | |
| body { margin: 0; border: 0; padding: 2em 3em; } | |
| aside, label { width: 100px; display: inline-block; transition: left 0.5s; } | |
| aside { height: 100px; position: relative; background-color: #ddf; } | |
| .pos1 { left: 0px; } | |
| .pos2 { left: 100px; } | |
| .pos3 { left: 200px; } | |
| .pos4 { left: 300px; } | |
| </style> | |
| </head> | |
| <body> | |
| <label>1</label> | |
| <label>2</label> | |
| <label>3</label> | |
| <label>4</label> | |
| <br/> | |
| <aside id="mover" class="pos1">pos</aside> | |
| <br/> | |
| <input type="button" onclick="document.getElementById('mover').className = 'pos1'" value="1"/> | |
| <input type="button" onclick="document.getElementById('mover').className = 'pos2'" value="2"/> | |
| <input type="button" onclick="document.getElementById('mover').className = 'pos3'" value="3"/> | |
| <input type="button" onclick="document.getElementById('mover').className = 'pos4'" value="4"/> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i took your code, and put it in one of my templates. Same thing, just a little different.
https://github.com/Ehawk82/SudokuGame