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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
section { | |
background:yellow; | |
} | |
#p1 { | |
background:blue; | |
width:50%; |
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
/** | |
* MeiTuan.com | |
*/ | |
body{background:#555} | |
#left { | |
float:left; | |
width:100px; | |
margin:0 20px 10px 10px; | |
background:#ccc; | |
} |
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
/** | |
* clear the float | |
*/ | |
#main_container { | |
width: 400px; | |
margin: 20px auto; | |
border: 2px solid #cccccc; | |
padding: 5px; | |
/*overflow:hidden;*/ |
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
/** | |
* border see through | |
*/ | |
div { | |
width:275px; | |
height:250px; | |
border:20px dashed rgba(0,0,0,.5); | |
background:red; | |
} |
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
/** | |
* css id selector rules can work on multiple elements | |
*/ | |
#d1 { | |
width:300px; | |
height:100px; | |
background:red; | |
margin:10px; | |
color:yellow; |
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
/** | |
* css id selector rules can work on multiple elements | |
*/ | |
#d1 { | |
position: absolute; | |
background:red; | |
margin:10px; | |
color:yellow; | |
border:15px dashed; |
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
/** | |
* z-index test | |
*/ | |
.box { | |
border: 2px solid black; | |
width: 200px; | |
height: 200px; | |
} | |
#box1 { |
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
/** | |
* http://kellegous.com/j/2013/02/27/innertext-vs-textcontent/ | |
*/ |
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
#!/usr/bin/env python | |
# | |
# Script to convert png files to RGBA color space | |
# Requires Pillow (pip install Pillow) | |
# | |
import os | |
import fnmatch | |
from PIL import Image | |
for root, dirnames, filenames in os.walk('sprites'): |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="this" /> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<a id=asdf>shishi</a> | |
</body> |
OlderNewer