Skip to content

Instantly share code, notes, and snippets.

View iamstarkov's full-sized avatar
🔥

Vladimir Starkov iamstarkov

🔥
View GitHub Profile
@iamstarkov
iamstarkov / dabblet.css
Created May 14, 2012 12:52 — forked from LeaVerou/dabblet.css
Scrolling shadows by @kizmarh and @LeaVerou
/**
* Scrolling shadows by @kizmarh and @leaverou
* Only works in browsers supporting background-attachment: local; & CSS gradients
* Degrades gracefully
*/
html {
background: white;
font: 120% sans-serif;
}
/**
* CSS-only: How can I center fixed width div between two divs that fill the remaining space?
*/
#main {
height: 40px;
width: auto;
border: 1px solid #cfcfcf;
position: relative;
}
/**
* CSS-only: How can I center fixed width div between two divs that fill the remaining space?
*/
#main {
height: 40px;
width: auto;
border: 1px solid #cfcfcf;
position: relative;
}
@iamstarkov
iamstarkov / dabblet.css
Created May 15, 2012 11:19
basic layout
/**
* basic layout
*/
/* colors */
#header,
#footer {
background-color: #f1f1f1;
}
@iamstarkov
iamstarkov / dabblet.css
Created May 15, 2012 11:19
basic layout
/**
* basic layout
*/
/* colors */
#header,
#footer {
background-color: #f1f1f1;
}
@iamstarkov
iamstarkov / dabblet.css
Created May 15, 2012 11:21
custom layout
/**
* custom layout
*/
/* colors */
#header,
#footer {
background-color: #f1f1f1;
}
@iamstarkov
iamstarkov / dabblet.css
Created May 15, 2012 16:07
custom layout
/**
* custom layout
*/
/* colors */
#header,
#footer {
background-color: #f1f1f1;
}
/**
* http://stackoverflow.com/questions/10604586/laying-out-page-elements-with-css
*/
#parent {
background-color: #efefef;
position: relative;
width: 400px;
}
.right {
@iamstarkov
iamstarkov / dabblet.css
Created May 15, 2012 20:17
Text masking — The SVG way
/**
* Text masking — The SVG way
*/
svg {
width: 6em; height: 1.5em;
font: 900 500%/1.2 'Arial Black', sans-serif;
}
text { fill: url(#wood); }
<ul>
<li class="home">
<a href="#">Home</a>
</li>
<li class="blog">
<a href="#">Blog</a>
</li>
<li class="faq">
<a href="#">FAQ</a>