Skip to content

Instantly share code, notes, and snippets.

@exarcheia-web
Last active November 23, 2016 06:09
Show Gist options
  • Save exarcheia-web/d75e80bea688e7e98bf4df61433344ca to your computer and use it in GitHub Desktop.
Save exarcheia-web/d75e80bea688e7e98bf4df61433344ca to your computer and use it in GitHub Desktop.
Updated version of background-attachment: fixed
/* Updated version of background-attachment: fixed */
body {
font-family: "Georgia", serif;
margin: 0;
}
h1 {
margin: 0
}
.site-header {
background-image: url("//c7.staticflickr.com/2/1666/24374507406_f919b291f8_k.jpg");
background-repeat: no-repeat;
background-size: cover; /* use 'cover' to fill the whole element */
background-attachment: fixed; /* this is what does all the magic! */
padding-top: 15%;
padding-bottom: 20px;
color: white;
text-align: center;
}
main {
padding: 15px 29px;
font-size: 24px;
line-height: 1.4;
}
<!-- content to be placed inside <body>…</body> -->
<header class="site-header">
<h1>A force of wakefulness</h1>
</header>
<main>
<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>
</main>
// 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