Pen Settings

HTML

CSS

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

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

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

              
                <main>
 
 <div class="emerge__component">
		   
  <div class="emerge__title">
	 <h1>Now Reading</h1>
	</div><!--title-->
		   
	 <div class="emerge__extrude">
		<div class="emerge__pink-top"></div> 
		<div class="emerge__pink-bottom"></div>
		    
		 <div class="emerge__content-container">
			  
			  <div class="box-33">
			   <div class="emerge__book-holder">
			    <img src="https://drewgoff.com/images/books/ux-strategy.png" class="img-responsive-centered" alt="ux-strategy" width="333" height="500" >
			   </div><!--book-holder-->
			  </div><!--box-33-->
			 
		    <div class="box-66"> 
			   <div class="emerge__book-info-box">			    
			    <div class="emerge__book-titles">Title</div>
				  <div class="emerge__book-info">UX Strategy</div>
			    <div class="emerge__book-titles">Author</div>
				  <div class="emerge__book-info">Jamie Levy</div>
			   </div><!--emerge__title-area-->
			  
			   <p>
			   This book has been changing the way I look at UX Design.  In fact, I feel guilty for not having read this book sooner in my career.  It’s opened up my eyes to that UX Design is really just a tiny part of the bigger picture.
			   </p>
			   
			   <br /><br />
			   
			   <p>
			   The book has taught me a critical thought process, in how to determine whether a new product will be successful or not.  Now when someone comes to me with a new app idea, I can simply put it through my method process and see if it can be successful.  If not successful, then what do we need to do to make it successful.
			   </p>
			   
			  </div><!--box-66-->	 
			 
	 </div><!--content-container-->
  </div><!--emerge__extrude-->	 
		     
 </div><!--emerge__component-->

</main>
              
            
!

CSS

              
                // variables //
$super-white:        #ffffff;
$white:   		 	     #f2f2f2;
$off-white:			     #e5e5e5;
$white-grey:	 	     #c5c5c5;
$light-pale-grey:    #7c7c81;
$light-grey-grey:	   #636367;
$super-light-grey:	 #56565a;
$light-grey-blue: 	 #4a4a4d;
$dark-grey-blue: 	   #313133;
$dark-black-blue: 	 #252526;
$lighter-pink: 			 #F65BA6;
$light-pink:	 	     #ff4d79;
$medium-pink:		     #ff3366;
$dark-pink: 		     #ea2e6d;
$title-font:	   	   'Anton', sans-serif;
$bold-font-weight: 	  400;
$body-font:		   	   'Nunito', sans-serif;
$medium-font-weight:  400; 
$regular-font-weight: 300;  

/* =====================
	    Google Fonts
======================== */
@import url('https://fonts.googleapis.com/css?family=Anton|Nunito:300,400');

/*! minireset.css v0.0.3 | MIT License | github.com/jgthms/minireset.css */
html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,
legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6 
{margin:0;padding:0}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}
ul{list-style:none}
button,input,select,textarea{margin:0}
html{box-sizing:border-box}
*,*:before,*:after{box-sizing:inherit}
img,embed,iframe,object,audio,video{height:auto;max-width:100%}
iframe{border:0}table{border-collapse:collapse;border-spacing:0}
td,th{padding:0;text-align:left}

/* =====================
	        Body
======================== */
html { font-size: 62.5%; }
html, body { height: 100%; min-width: 320px; }


body {
   display: flex;
   flex-direction: column;
   background-color: $light-grey-blue;
   color: $white;
   font-size: 17px;
   line-height: 1.6;
   font-family: $body-font;
}  

a {
  color: $medium-pink;
  text-decoration: none;
  &:hover {
	color: $dark-pink;
    outline: 0;
  }
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

li { display: inline; }
hr { border: 0.5px solid $dark-pink; }

main { 
  flex: 1 0 auto; 
  padding-top: 50px;
  padding-bottom: 50px; 
}

.img-responsive-centered {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

/* =====================
	     Typography
======================== */
h1, h2, h3, h4, h5, h6 { 
	font-family: $title-font; 
	font-weight: $bold-font-weight; 
	letter-spacing: 2.77px; 
	color: $white;
	line-height: 1.25;
	margin-top: 4px;
	margin-bottom: 4px;
}

h1.accent, h2.accent, h3.accent, 
h4.accent, h5.accent, h6.accent { 
	font-family: $body-font; 
	font-weight: $regular-font-weight; 
	letter-spacing: 1px; 
	color: $white;
	line-height: 1;
}

h1 { font-size: 3.0rem; text-shadow: 0px 3px 16px rgba(50, 50, 50, 0.75); }
h2 { font-size: 2.5rem; }
h3 { font-size: 2.0rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.0rem; }
h6 { font-size: 0.5rem; }

h1.accent { font-size: 2.84rem; text-shadow: 0px 3px 16px rgba(50, 50, 50, 0.75); }

h1::first-letter { color: $dark-pink; font-size: 5rem; }

@media only screen and (max-width: 480px)  { 
 h1 { font-size: 2.4rem; }
 h2 { font-size: 2.1rem; }
 h3 { font-size: 1.9rem; }
 h4 { font-size: 1.6rem; } 
 h5 { font-size: 1.3rem; }
 h6 { font-size: 1.0rem; }
 h1::first-letter { font-size: 4rem; }
}

strong {
	color: $dark-pink;
	font-family: $title-font;
	font-weight: $medium-font-weight;
	letter-spacing: 1px;
	display: inline-block;
	font-size: 1.7rem;
}

p {
    display: inline-block;
    color: $white;
    margin-left: 0;
    margin-right: 0;
    font-size: 1.7rem;
    font-weight: $regular-font-weight;
    letter-spacing: 1px;
    line-height: 1.3;
}


/* =====================
	Emerge Component
======================== */
.emerge__component {
	margin: 40px 0 40px 0;
}

.emerge__title {
	padding-left: 35px;
	max-width: 1000px;
	margin: 0 auto;
}

.emerge__extrude {
	width: 100%;
	height: auto;
	background: $light-grey-grey;
	box-shadow: 0 2px 4px 0 rgba(0,0,0,0.50);
	padding-bottom: 20px;
}

.emerge__pink-top {
	background-color: $light-pink;
	height: 15px;
	width: 100%;	
}

.emerge__pink-bottom {
	background-color: $medium-pink;
	height: 15px;
	width: 100%;	
	box-shadow: 0 2px 4px 0 rgba(0,0,0,0.50);
}

.emerge__content-container {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row-reverse;
	max-width: 1000px;
	margin: 0 auto;
}

.box-33 { 
	width: calc(33.3333% - 15px);
	padding: 10px;
}

.box-50 { 
	width: calc(50% - 15px);
	padding: 10px;
}

.box-66 { 
	width: calc(66.6666% - 15px);
	padding: 10px;
}

.emerge__book-holder {
	z-index: 2;
	margin-top: -110px;
}

.emerge__book-info-box {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	max-width: 300px;
	margin-top: 10px;
	margin-bottom: 20px;
}

.emerge__book-titles { 
	width: calc(33.3333% - 15px); 
	font-family: $title-font;
	font-weight: $bold-font-weight;
	letter-spacing: 0.50px;
	font-size: 1.9rem;
	color: $dark-black-blue;
}

.emerge__book-info   { 
	width: calc(66.6666% - 15px);
	font-family: $body-font;
	font-weight: $medium-font-weight;
	letter-spacing: 0.50px;
	font-size: 1.9rem;
	color: $super-white;
}

@media only screen and (max-width: 650px) {

 .emerge__title {
   margin: 0 auto 81px auto;
   padding-left: 25px;
 }

 .emerge__content-container {
   flex-direction: row;
   padding: 15px;
 }

 .pad-left { padding-left: 10px; padding-right: 10px; }
 .box-33 { width: calc(100% - 15px); }
 .box-66 { width: calc(100% - 15px); }
 .emerge__book-holder { margin-top: -130px; }
}

              
            
!

JS

              
                
              
            
!
999px

Console