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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                <body>
 <div class="row">
	
	<div class="col-3">
	<div class="sub-content">
	<h1>Full of Surprises</h1>
	<p>Mandy can put a smile on your face and a warm feeling in your heart with her little surprises and romantic gestures. Not all of these may seem like grand gestures of love in the normal sense, but anyone who has been or is in love will know that they count and mean just as much.<br><br> 
	Mandy is particularly fond of writing messages in different ways like spelling out 'I love u' with tea light candles in the bedroom. She also wrote 'I love you' with grated cheese on top of a home made shepherds pie. I woke up one morning and dragged myself, bleary eyed, through to the kitchen to have my morning coffee to find that Mandy had left me little love notes taped to the kitchen units. 
	Needless to say I started my day with a smile on my face.<br><br>It's often the small gestures like this that are overlooked or under appreciated, everyone likes to be reminded that they are loved. So don't let the little things pass you by, take the time to make these small romantic gestures and keep the love alive.</p>
	<img src="images/love-notes2.jpg" alt="Love Notes">
	</div>
	</div>

	<div class="col-3">
	<div class="sub-content">
	<h1>Live, Laugh, Love</h1>
	<p>Mandy likes to do all of these, she certainly likes to laugh and joke, sure enough Mandy will make you laugh with all her crazy antics. If she isn't doing her infamous 'Kevin and Perry' impression (at which she creases herself with laughter), then you can expect Mandy to be jumping out at you from behind a door to scare the living daylights out of you, which is sure enough to cause a fit of giggles.<br><br>
	One of the many ways in which Mandy can bring a smile to yor face is with the short videos that she likes to make on her iphone of herself singing along in the car and bouncing to the beat of various artists like Calvin Harris, Miley Cirus etc. These have brought a smile to many of her friends faces and can cheer you up in an instant.<br><br>
	Life is too short, Live, Laugh, Love and don't take things too seriously all the time, make each other laugh, have fun.</p>
	<img src="images/live2.jpg" alt="Live, Laugh, Love">
	</div>
	</div>

	<div class="col-3">
	<div class="sub-content">
	<h1>No Matter What</h1>
	<p>If you're feeling down, need a shoulder to cry on and haven't had the best of days then Mandy is always there to comfort you, offer words of reassurance and console you in your time of need. Mandy has been a pillar of strength over the last 12 months, picking me up and supporting me through some challenging and emotional moments.<br><br> Everyone has their own problems to deal with and the pressures of life that's thrown at them 
	everyday but Mandy is always there to support here close friends and family at the drop of a hat, always putting others before herself.<br><br>
	When you have someone that supports and cares for you so selflessly don't take it for granted. Sometimes bearing the burden of other peoples troubles can give people the impression that they are strong enough to deal with their own as well, take more notice of your lover and be there when they need you to return the favour. Stop an appreciate each other.....remember, you can never say 'I love you' too much.</p>
	<img src="images/beach-love.jpg" alt="Marc loves Mandy">
	</div>
	</div>
	
</div>
 
</body>
              
            
!

CSS

              
                *,
*:after,
*:before {
  margin: 0;
  padding: 0;
/* Removes padding behaviour on widths */
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

/* Row set up */
.row:after {
  content: "";
  display: table;
  clear: both;
}
.row {
width:98%;
margin:0 auto;
padding-bottom:1%;
}
/* End Row set up */

/* column float and margin set up */
 
[class*='col-'] {
  float: left;
}

[class*='col-'] {
 float: left;
 padding:10px;
}
[class*='col-'] + [class*='col-'] {
 margin-left: 1.6%;
}
/* End column float and margin set up */

/* Column widths */

.col-1 {width:100%}
.col-2 {width:49.2%}
.col-3 {width:32.26%}
.col-4 {width:23.8%}
.col-5 {width:18.72%}
.col-6 {width:15.33%}
.col-7 {width:12.91%}
.col-8 {width:11.1%}
.col-9 {width:9.68%}
.col-10 {width:8.56%}
.col-11{width:7.63%}
.col-12{width:6.86%}	

/* End column widths */


.sub-content h1, h2, h3 {
	padding-top:10px;
	padding-bottom:10px;
	color:#9A2732;
}
.sub-content { 
	padding:1% 1% 50% 2%;
	background:#F69BA4;
	position:relative;
	
}
.col-3 .sub-content {
	min-height:750px;
}


.sub-content img {
	margin:0 auto;
	position:absolute;
	bottom:10px;	
	border:2px white solid;
	max-width:96%;
	height:auto;
	
}

              
            
!

JS

              
                
              
            
!
999px
How do you comfort a JavaScript bug? You console it!

Console