Skip to content

Instantly share code, notes, and snippets.

@maxhoffmann
Created May 6, 2013 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxhoffmann/5529012 to your computer and use it in GitHub Desktop.
Save maxhoffmann/5529012 to your computer and use it in GitHub Desktop.
Untitled
.pulled-to-right {
float: right;
width: 50%;
background-image: url(http://www.nasa.gov/images/content/745223main_image04292013_250m_800-600.jpg);
background-size: cover;
height: 30vw;
}
p {
margin-left: 5%;
font-size: 2.6ex;
line-height: 1.5;
width: 40%;
font-family: sans-serif;
}
body {
margin: 0;
}
<section>
<div class="pulled-to-right"></div>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
</section>
// alert('Hello world!');
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment