Skip to content

Instantly share code, notes, and snippets.

@StoneCypher
Created May 11, 2015 03:42
Show Gist options
  • Select an option

  • Save StoneCypher/b525fb924b5e076ebd3a to your computer and use it in GitHub Desktop.

Select an option

Save StoneCypher/b525fb924b5e076ebd3a to your computer and use it in GitHub Desktop.
<!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>
@Ehawk82
Copy link
Copy Markdown

Ehawk82 commented May 13, 2015

i took your code, and put it in one of my templates. Same thing, just a little different.

https://github.com/Ehawk82/SudokuGame

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment