Skip to content

Instantly share code, notes, and snippets.

@anksanu
anksanu / index.html
Created August 14, 2014 06:05
Difference between different css position // source http://jsbin.com/vukab/5
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Difference between different css position" />
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.first,.second{
width: 100px;
height: 100px;
@anksanu
anksanu / dabblet.css
Created January 7, 2014 17:29
CSS box-sizing
/**
* CSS box-sizing
*/
body {
background : black;
}
#a {
box-sizing : border-box;
width : 100px;
height : 100px;
@anksanu
anksanu / dabblet.css
Created January 7, 2014 09:40
HTML5 Canvas 2
/**
* HTML5 Canvas 2
*/
canvas {
border: 1px solid #CC0000;
margin-left:50px;
}
@anksanu
anksanu / dabblet.css
Created January 2, 2014 15:43
HTML5 Canvas
/**
* HTML5 Canvas
*/
canvas {
border: 1px solid #CC0000;
margin-left:50px;
}
@anksanu
anksanu / dabblet.css
Created December 30, 2013 17:52
css :before and :after psudo element
/**
* css :before and :after psudo element
*/
div { width : 200px; height : 200px; text-align : left; background-color : #ccc; padding-top : 90px;}
div:before { width : 50px; height:20px; background-color: red;content:'Before';display:block;}
div:after { width : 50px; height:20px; background-color: green;content:'After';display:block;}
@anksanu
anksanu / dabblet.css
Created December 30, 2013 17:24
upgrading the hover popup effect
/**
* upgrading the hover popup effect
*/
.button {background-color : #ddd;width : 100px;position : relative;margin-top : 100px;
}
.pop {position : absolute;top : -30px;width : 130px;text-align : center;background-color : green; z-index : 3;
}
.area1{position:absolute;background-color : blue; z-index :2;width : 150px; height : 100px; top : -50px; opacity:0.2;
@anksanu
anksanu / dabblet.css
Created December 19, 2013 08:54
JavaScript Closure
/**
* JavaScript Closure
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@anksanu
anksanu / dabblet.css
Created December 19, 2013 07:15
JavaScript Variable Scope
/**
* JavaScript Variable Scope
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@anksanu
anksanu / dabblet.css
Created December 19, 2013 07:01
JavaScript Prototype Inheritance
/**
* JavaScript Prototype Inheritance
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@anksanu
anksanu / dabblet.css
Created December 19, 2013 06:48
JavaScript Prototype Inheritance
/**
* JavaScript Prototype Inheritance
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;