Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <html lang="en">
	<meta charset="UTF-8">
	<title>Vignette Effect</title>
	<div id="mainContent">
		<div class="headline">
		<h2>Effetto Vignette</h2>
	<div class="description">
		<p>L'effetto vignette può rendere esaltanti le nostre foto, magari per presentare un portfolio dei nostri lavori più interessanti.</p>
	<div id="vignette">



                #mainContent {
	width: 90%;
	text-align: center;
	margin: auto;

body {	
	font-family: 'Roboto', sans-serif; 	
	background: #cecece;
	background: -moz-linear-gradient(top,  #cecece 0%, #848484 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#cecece), color-stop(100%,#848484)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #cecece 0%,#848484 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #cecece 0%,#848484 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #cecece 0%,#848484 100%); /* IE10+ */
	background: linear-gradient(to bottom,  #cecece 0%,#848484 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cecece', endColorstr='#848484',GradientType=0 ); /* IE6-9 */


#mainContent h2 {
	font-size: 42px;
	color: rgba(0, 0, 0, 0.5);
	    display: inline-block;
    border-bottom: 1px solid #eee;

#vignette {
	position: relative;
  height: 400px;
  display: block;
  background-image: url('');
  background-size: cover;
  width: 50%;
  margin: 200px auto;

#vignette:after {
	content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  box-shadow: inset 0px 0px 150px black;  /* provate a modificare questi valori per provare nuovi effetti :); */

#vignette:hover:after {
  box-shadow: none;