Skip to content

Instantly share code, notes, and snippets.

@ZeeAgency
ZeeAgency / dabblet.css
Created February 12, 2012 20:41 — forked from LeaVerou/dabblet.css
TV screen
/**
* TV screen
*/
html { background: white; }
.tv {
position: relative;
width: 200px;
height: 150px;
@ZeeAgency
ZeeAgency / gist:1779872
Created February 9, 2012 13:10
Auto-height Hack
<!doctype html>
<style type="text/css">
.outer {
width: 200px;
height: 200px; /* 200px = list's height, outer will end to 300px */
padding: 50px 0; /* Here's the Hack */
border: 1px dotted red; /* to aid debugging */
}
.header, .footer {
@ZeeAgency
ZeeAgency / css
Created February 1, 2012 00:15
CSS Hack
@media only screen and (max-width: 960px) {
div#header {
background-position: center -20px;
}
h1#logo {
height: 99px;
}
div#page {
width: auto;
}
@ZeeAgency
ZeeAgency / dabblet.css
Created January 23, 2012 23:47
Untitled
div {
position: absolute;
padding: 3px;
width: 20px;
height: 20px;
background: rgba(0, 0, 0, 0.5);
border-radius: 50%;
text-align: center;
color: #FFF;
@ZeeAgency
ZeeAgency / dabblet.css
Created January 6, 2012 15:39
Untitled
section {
margin: 20px;
width: 400px;
padding: 60px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4) inset;
border-radius: 6px;
}
.red {
background-color: #d70f00;
@ZeeAgency
ZeeAgency / dabblet.css
Created January 5, 2012 09:53
Untitled
body {
font-family: Trebuchet MS, Helvetica, Arial, sans;
}
style {
display: block;
margin: 10px;
padding: 10px;
white-space: pre;
font-family: Monaco, monospace;
line-height: 3em;
@ZeeAgency
ZeeAgency / dabblet.css
Created January 4, 2012 15:10
Untitled
div {
margin: 20px;
border: 1px solid #CCC;
padding: 10px;
width: 200px;
height: 200px;
background: #FFF;
overflow: scroll;
}
@ZeeAgency
ZeeAgency / dabblet.css
Created January 4, 2012 13:27
Untitled
body {
font-family: Trebuchet MS, Helvetica, Arial, sans;
}
div {
margin: 20px;
border: 1px solid black;
padding: 10px;
width: 400px;
@ZeeAgency
ZeeAgency / dabblet.css
Created January 4, 2012 11:26
Untitled
body {
font-family: Trebuchet MS, Helvetica, Arial, sans;
}
div {
margin: 20px;
border: 1px solid black;
padding: 10px;
width: 400px;
@ZeeAgency
ZeeAgency / dabblet.css
Created January 2, 2012 12:16
The -Webkit-scrollbar challenge
/**
* The -Webkit-scrollbar challenge
* * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Make the first div’s scrollbar like the second’s
* without changing the styling of the div (i.e. you
* can only change the ::-webkit-scrollbar-* rules
* * * * * * * * * * * * * * * * * * * * * * * * * * * *
* It doesn't matter if the second div doesn't look the same
* after your changes, it's only there to show you how the