Created
February 27, 2012 16:04
-
-
Save xem/1924968 to your computer and use it in GitHub Desktop.
zoom
This file contains 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
/* zoom */ | |
* { margin: 0; padding: 0; } | |
.containerTable { width: 200px; height: 100px; margin: 100px 0 0 300px; background: #987654; } | |
.containerTd { width: 100px; height: 100px; vertical-align:top; } | |
div { text-align: center; width: 100px; height: 100px; background: #ECA864; border: 1px solid black; transition: all 1s ease; position: absolute; } | |
div.zoom { width: 1024px; height: 700px; margin-left: -300px; margin-top: -100px; position: absolute; } | |
This file contains 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
<table class="containerTable"> | |
<tr> | |
<td class="containerTd"> | |
<div onClick="if(this.className=='zoom') this.className=''; else this.className='zoom';"> | |
Click me | |
</div> | |
</td> | |
<td> | |
Texte à côté | |
</td> | |
</tr> | |
</table> |
This file contains 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
{"view":"separate","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment