cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmloctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div class="wrapper">
	    		
	    	<section class="beer">
	    		<h1>On Hops.</h1>
					<p>Many professed brewers are particularly attached to the colour of the hops, that is, they are partial to those of a fine green colour; these are certainly to be prefered, if they were ripe when gathered:—to prove their goodness, rub them between your fingers, if they are in full condition they will stick to your fingers, will have a good strong scent, and the seeds will appear full and yellow.</p>
					<p>Brown spots are frequently to be seen on hops; these are, in general, hops that came to a full ripeness before they were gathered. High winds and rain frequently happen about the middle or latter end of the hop season, which will disfigure them in their colour in a few hours, so that the colour is not at all times to direct you as to their goodness.</p>
					<p>In the hop countries most hop-planters keep those hops which are most disfigured in their quality, separate and apart, when picking, from those of a brighter colour; those which are of an inferior colour are kept for their own use, and disposed of to their neighbours, it being their opinion that they answer the purpose in brewing nearly as well as those of a brighter colour, provided they are in full condition, that is, if they are full of seeds; for in the seeds is the virtue and strength of the hop.</p>
					<p>The quantity of hops used in brewing is generally half a pound to a bushel of malt, and so in proportion to a greater quantity; if mild ale, for present drinking, a lesser quantity will do; but this must be left to the discretion of the brewer, or master of a family, as some are more partial to the taste of the hop than others.</p>
					<p>Hops are found to be of such excellent utility in the bittering of beer, that common brewers and innkeepers are forbidden by law to use any other bitter ingredient whatever in brewing of beer and ale. I have taken the liberty to insert this as a caution to the unwary.</p>
					<p>As to the quantity of beer each bushel of malt should produce, it must rest on the option or circumstances of the brewer, or the head of a family. A bushel of malt will produce ten gallons of good ale; but the greater the quantity of malt, brewed at one time, the better will be your beer.</p>
	    	</section>
  <svg class="corona" version="1.1" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
		<style type="text/css">
			<![CDATA[
				#corona{
					mask :url(#mask_corona);			
				}
			]]>
		</style>
		
		<symbol  id="img_corona">
			<image width="840" height="400" xlink:href="https://dl.dropboxusercontent.com/u/974449/corona.jpg" />
		</symbol>

		<mask id="mask_corona">
			<use xlink:href="#img_corona" width="840" height="400" x="-420" y="0" style="overflow:hidden;"/>
		</mask>
		
		<use id="corona"  width="420" height="400" xlink:href="#img_corona" style="overflow:hidden;"/> 
</svg>
	    </div>
            
          
!
            
              @import "compass/css3";

*{
  margin: 0;
  padding: 0;
}

.wrapper{
  position: absolute;
  width: 100%;
  height: 100%;
  min-width: 500px;
  overflow: hidden;
  padding: 2em;
  box-sizing: border-box;
  -moz-transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.corona{
  width: 420px;
  height: 400px;
  position: absolute;
  left: 20%;
  top: 10%;
  z-index: 100;
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
}

.beer{
  position: absolute;
  top: 0;
  z-index: 0;
  color: #69542C;
  font: 1.3em/1.3 Georgia, "Times New Roman", Times, serif;
  -webkit-transform: perspective(700px) rotateX(35deg) translateZ(200px);
  -moz-transform: perspective(700px) rotateX(35deg) translateZ(200px);
  -ms-transform: perspective(700px) rotateX(35deg) translateZ(200px);
  transform: perspective(700px) rotateX(35deg) translateZ(200px);
}

h1{
  font-size: 2em;
  text-align: center;
}

p{
  margin-bottom: 0.4em;
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console