Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

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

Packages

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.

Behavior

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.

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

              
                <div class="container">
	<!-- The actual image -->
	<img src="https://assets.codepen.io/3461446/IMG_1109.jpg">
	<!-- The text that goes over the image -->
	<div class="text-block">
		<h1>Pico</h1>
		<p>Bacon ipsum dolor amet boudin andouille ground round tongue incididunt bacon sausage burgdoggen pig cupidatat turkey porchetta in velit. Shoulder chislic prosciutto, burgdoggen kevin tenderloin filet mignon short ribs enim id. Nisi irure do, cupim nulla ham hamburger culpa et turkey jerky pork belly salami laborum shank. Ut swine jerky, incididunt deserunt lorem pancetta nostrud tail. Prosciutto in ex, leberkas beef cow mollit minim officia chuck adipisicing jerky laboris kevin bacon.</p>

<p>Labore beef buffalo non, ut shank cillum filet mignon pork quis tri-tip jowl hamburger. Pork loin nostrud eu turkey. Incididunt eu frankfurter cupidatat qui laborum ut brisket andouille. Filet mignon bresaola ut chicken meatloaf.</p>

<p>Id dolore pork chop, ribeye sirloin officia elit consequat dolor nulla shankle. Swine sed reprehenderit doner alcatra. Pig sirloin bresaola, dolore turducken pariatur picanha filet mignon et officia ut pork chop. Turkey short loin pariatur venison. Ipsum prosciutto ball tip corned beef tri-tip brisket tail eiusmod ribeye. Bresaola short ribs anim ullamco, kielbasa prosciutto ribeye. Qui fugiat jerky, labore ad in laboris ut flank eiusmod beef ribs strip steak ut do tempor.</p>
<p>Elit pork proident, chicken nisi ground round nulla flank rump kielbasa laborum ball tip fatback. Ball tip filet mignon salami frankfurter cillum corned beef landjaeger reprehenderit est sed tri-tip. Occaecat sint laboris dolore short loin. Drumstick duis reprehenderit andouille brisket. Pig beef ribs proident kevin, spare ribs jerky in frankfurter veniam fatback meatloaf short ribs buffalo. Esse ball tip ex ham hock swine deserunt. Pork tri-tip voluptate, cillum shank consectetur irure non bacon picanha esse proident alcatra.</p>

<p>Turkey meatball kevin andouille picanha dolore in. Chuck tail reprehenderit porchetta do, flank dolore pork loin pancetta rump bresaola. Jowl mollit pastrami doner landjaeger, labore chicken. Consequat kevin commodo dolore duis capicola. Lorem bacon dolor in venison pig nostrud.</p>
	</div>
</div>
              
            
!

CSS

              
                .container {
  position: relative;
}

/* Set the image to stretch the width of the browser */
img {
	width:100%;
}

/* Place the text box in the lower, left-hand corner */
.text-block {
  position: absolute;
  bottom: 20px;
  left: 20px;
	width: 80%;
  background-color: black;
  color: white;
  padding-left: 20px;
  padding-right: 20px;
	/* Adding a slight transparency by setting opacity to 90% */
	opacity: 0.9;
}
              
            
!

JS

              
                
              
            
!
999px

Console