Skip to content

Instantly share code, notes, and snippets.

@exarcheia-web
Last active November 22, 2016 16:53
Show Gist options
  • Save exarcheia-web/f115009fdb9481675bbf6b972ac97545 to your computer and use it in GitHub Desktop.
Save exarcheia-web/f115009fdb9481675bbf6b972ac97545 to your computer and use it in GitHub Desktop.
Example possibilities with background-attachement: fixed
/* Example possibilities with background-attachement: fixed */
body {
margin: 0;
}
.bg {
width: 100%;
padding-top: 15%;
background-color: red;
background-image: url(//c7.staticflickr.com/2/1666/24374507406_f919b291f8_k.jpg);
background-size: cover;
background-attachment: fixed;
font-family: Georgia;
font-style: italic;
text-align: center;
font-size: 40px;
color: rgba(255,255,255,0.9);
padding-bottom: 20px;
}
p {
font-family: Arial;
line-height: 1.4;
font-size: 2em;
}
<!-- //c7.staticflickr.com/2/1666/24374507406_f919b291f8_k.jpg -->
<div class="bg">A force of wakefulness</div>
<p>“Art,” Jeanette Winterson observed in a terrific conversation about art and the human spirit, “pulls people up short. It says, don’t accept things for their face value; you don’t have to go along with any of this; you can think for yourself.” This function of art as a force of wakefulness — of wokefulness — is particularly vital and vitalizing at times of injustice and oppression, under regimes built on ideologies of mass coercion.</p>
<p>But it comes at a price.The complexities of that price and why it is worth paying are what the great French writer André Gide (November 22, 1869–February 19, 1951) explores throughout The Journals of André Gide (public library) — an abiding trove of wisdom from one of literature’s most luminous minds and the most cherished of young Susan Sontag’s favorite books.</p>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment