Skip to content

Instantly share code, notes, and snippets.

View zetareticoli's full-sized avatar
👨‍💻
Building stuff on the web

Francesco Improta zetareticoli

👨‍💻
Building stuff on the web
View GitHub Profile
@zetareticoli
zetareticoli / index.html
Created November 23, 2012 10:23
A CodePen by Olex Ponomarenko. GRG Responsive Grid - Similar to Masonry, but with less heavy javascript. This particular version is limited to just square and 2:3 tall images, so it's definitely not as flexible as masonry, just snappier. All positioning i
<h1>GRG Responsive Grid</h1>
<h2>Responsive grid without masonry (light on Javascript). Requires square or 2:3 scale tiles ("tall" class).</h2>
<h2>By <a href="mailto:olex@bighuman.com">Olex</a>, Señor Developer at <a href="http://bighuman.com">BIG HUMAN</a></h2>
<div class="grid">
<div class="item tall">
<a class="link" href="#">
<div class="hovercontent">
<h1>JETSETTER</h1>
<h3>Designed by Big Human</h3>
</div>
@zetareticoli
zetareticoli / dabblet.css
Created April 18, 2012 08:33 — forked from LeaVerou/dabblet.css
Vertical centering with Flexbox + margin fallback
/**
* Vertical centering with Flexbox + margin fallback
* Lea Verou & David Storey
*/
html, body { height: 100%; }
body {
width: 100%; /* needed for FF */
margin: 0;
.hide-text {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
@zetareticoli
zetareticoli / gist:1828976
Created February 14, 2012 18:38
Footer always on bottom
#wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -140px; /* margin bottom = footer's height */
...
}
@zetareticoli
zetareticoli / gist:1760518
Created February 7, 2012 16:21
Drop and Inset tiny shadow
-webkit-box-shadow: 2px 2px 3px rgba(0,0,0,0.08), inset 0 1px 0 white;
-moz-box-shadow: 2px 2px 3px rgba(0,0,0,0.08), inset 0 1px 0 white;
box-shadow: 2px 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 white;
@zetareticoli
zetareticoli / gist:1042158
Created June 23, 2011 08:37
Stick footer to bottom
* {
margin: 0;
}
html, body {
height: 100%;
}
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
@zetareticoli
zetareticoli / gist:934071
Created April 21, 2011 09:41
Micro clearfix
/* For modern browsers */
.cf:before,
.cf:after {
content:"";
display:block;
}
.cf:after {
clear:both;
}
@zetareticoli
zetareticoli / CSS
Created March 10, 2011 14:36
Box shadow curl effect in CSS
ul.box {
margin: 0;
padding: 0;
clear: both;
overflow: hidden; }
ul.box li {
list-style-type: none;
margin: 0 30px 30px 0;
padding: 0;
@zetareticoli
zetareticoli / clearfix
Created October 31, 2010 20:23
Clearfix
.clearfix:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
.clearfix {
display:-moz-inline-stack;
display:inline-block;
zoom:1;
*display:inline;