Skip to content

Instantly share code, notes, and snippets.

@voidove
voidove / dabblet.css
Last active August 29, 2015 14:13 — forked from anonymous/dabblet.css
div
/**
* div
*/
.box-set {
background: #e8eae9;
color:#fff;
}
.box {
background: #8ec63f;
@voidove
voidove / dabblet.css
Last active August 29, 2015 14:16
relative position
/**
* relative position
*/
.box-set {
background: #e8eae9;
color:#fff;
}
.box {
background: #8ec63f;
@voidove
voidove / dabblet.css
Last active August 29, 2015 14:16
box-sizing
/**
* box-sizing
*/
.test1 {
width: 500px;
margin: 20px auto;
box-sizing: border-box;
border:10px solid red;
}
@voidove
voidove / dabblet.css
Last active August 29, 2015 14:16
垂直居中, inline element
/**
* 垂直居中, inline element
*/
/**
* 元素内容是单行,并且其高度是固定不变,line-height=height
*/
.center-text-trick {
border: 1px solid;
text-align: center;
/**
* plum
*/
.rect.raindrop{
background : lightblue;
width : 60px;
height : 60px;
position : absolute;
display : block;
overflow : hidden;
@voidove
voidove / dabblet.css
Last active August 29, 2015 14:17
html tag
/**
* html tag
*/
@voidove
voidove / dabblet.css
Last active August 29, 2015 14:18
olivia's smile face
/**
* olivia's smile face
*/
.face {
width: 300px;
height: 300px;
border-radius: 150px;
border: 2px solid;
position: relative;
@voidove
voidove / dabblet.css
Created April 2, 2015 09:36
ada's smile face
/**
* ada's smile face
*/
.face {
width: 300px;
height: 300px;
border-radius: 150px;
background: #red;
border: 2px solid #000;
@voidove
voidove / dabblet.css
Created April 8, 2015 01:20
css float
/**
* css float
*/
.container {
width: 150px;
height: 100px;
border: 1px solid blue;
}
.container .box{
/**
* form
*/