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.

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

              
                <!doctype html>
<html>
<!--================						By: Chris Cline 
As part of Free Code Camp's Responsive Web Design Projects - Build a Technical Documentation Page
 	
USER STORY LINK: https://learn.freecodecamp.org/responsive-web-design/responsive-web-design-projects/build-a-technical-documentation-page
    
E-mail chriscline@chriscline.tk
CodePen: chriscline1138
=======================================-->

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<title>CSS GRID</title>
<link href="css/stylesheet.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Share+Tech+Mono" rel="stylesheet">
</head>

<body>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<nav id="navbar">
	<header>CSS GRID</header>
<div class="flip">
	<div class="link-container">
		<!-- structere set up to maximize selectable area-->
		<a class="nav-link" href="#Section_1"><div class="link">Section_1</div></a>
		<a class="nav-link" href="#Section_2"><div class="link">Section 2</div></a>
		<a class="nav-link" href="#Section_3"><div class="link">Section 3</div></a>
		<a class="nav-link" href="#Section_4"><div class="link">Section 4</div></a>
		<a class="nav-link" href="#Section_5"><div class="link">Section 5</div></a>
		
	</div>	
	</div>		
</nav><!--=====  END navbar  =====--> 


<main id="main-doc" >
	
	<div class="main-doc-header">
		<div class="portfolio">
			<div class="portfolio-item portfolio-item-1"></div>	
			<div class="portfolio-item portfolio-item-2"></div>
			<div class="portfolio-item portfolio-item-3"></div>
			<div class="portfolio-item portfolio-item-4"></div>
			<div class="portfolio-item portfolio-item-5"></div>
			<div class="portfolio-item portfolio-item-6"></div>
			<div class="portfolio-item portfolio-item-7"></div>
			<div class="title">display:grid;</div>
			
		</div>
		
	</div>
	
	<!--=====  Section 1  =====-->	
		<section class="main-section" id="Section_1">
		<br> 
		<br> 
		<br> 
			<header>Section 1</header>
			<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Mattis enim ut tellus elementum sagittis vitae et leo. Laoreet non curabitur gravida arcu ac tortor dignissim convallis aenean. Pellentesque adipiscing commodo elit at imperdiet dui accumsan sit. Amet cursus sit amet dictum sit.</p>			
			<code>justify-content: center;</code>
			<ul> <header>In vino veritas</header>
				<li>1 Lorem Ipsum</li>
				<li>2 Lorem Ipsum</li>
				<li>3 Lorem Ipsum</li>
				<li>4 Lorem Ipsum</li>
				<li>5 Lorem Ipsum</li>
			</ul>
			<p>Vitae aliquet nec ullamcorper sit amet risus. At in tellus integer feugiat scelerisque varius morbi enim nunc. Aliquam faucibus purus in massa tempor nec feugiat nisl pretium.</p>
		
		</section>

	<!--=====  Section 2  =====-->
		
		<section class="main-section" id="Section_2"> 
		<br> 
		<br> 
		<br> 
			<header>Section 2</header>
			<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Mattis enim ut tellus elementum sagittis vitae et leo. Laoreet non curabitur gravida arcu ac tortor dignissim convallis aenean. Pellentesque adipiscing commodo elit at imperdiet dui accumsan sit. Amet cursus sit amet dictum sit.</p>
			
			<code>justify-content: center;</code>
				
			<p>Vitae aliquet nec ullamcorper sit amet risus. At in tellus integer feugiat scelerisque varius morbi enim nunc. Aliquam faucibus purus in massa tempor nec feugiat nisl pretium.</p>
		
		</section>
	
		
	<!--=====  Section 3  =====-->	
		<section class="main-section" id="Section_3"> 
		<br> 
		<br> 
		<br> 
			<header>Section 3</header>
			<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Mattis enim ut tellus elementum sagittis vitae et leo. Laoreet non curabitur gravida arcu ac tortor dignissim convallis aenean. Pellentesque adipiscing commodo elit at imperdiet dui accumsan sit. Amet cursus sit amet dictum sit.</p>
			
			<code>justify-content: center;</code>
				
			<p>Vitae aliquet nec ullamcorper sit amet risus. At in tellus integer feugiat scelerisque varius morbi enim nunc. Aliquam faucibus purus in massa tempor nec feugiat nisl pretium.</p>	
		</section>
	
	<!--=====  Section 4  =====-->	
		<section class="main-section" id="Section_4"> 
		<br> 
		<br> 
		<br> 
			<header>Section 4</header>
			<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Mattis enim ut tellus elementum sagittis vitae et leo. Laoreet non curabitur gravida arcu ac tortor dignissim convallis aenean. Pellentesque adipiscing commodo elit at imperdiet dui accumsan sit. Amet cursus sit amet dictum sit.</p>
			
			<code>justify-content: center;</code>
				
			<p>Vitae aliquet nec ullamcorper sit amet risus. At in tellus integer feugiat scelerisque varius morbi enim nunc. Aliquam faucibus purus in massa tempor nec feugiat nisl pretium.</p>	
		</section>
		
	<!--=====  Section 5  =====-->	
		<section class="main-section" id="Section_5">
		<br> 
		<br> 
		<br>  
			<header>Section 5</header>
			<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Mattis enim ut tellus elementum sagittis vitae et leo. Laoreet non curabitur gravida arcu ac tortor dignissim convallis aenean. Pellentesque adipiscing commodo elit at imperdiet dui accumsan sit. Amet cursus sit amet dictum sit.</p>
			
			<code>justify-content: center;</code>	
			
			<p>Vitae aliquet nec ullamcorper sit amet risus. At in tellus integer feugiat scelerisque varius morbi enim nunc. Aliquam faucibus purus in massa tempor nec feugiat nisl pretium.</p>
				
		</section>				
	
</main><!--=====  END main-doc  =====--> 


</body>
</html>

              
            
!

CSS

              
                :root{
	font-size: 1.75vw;
	font-family: 'Roboto', sans-serif;
			
			/*Theme Colors*/
			--text_color: #222022;
			--dark_tone:#4c4947;
			--medium_tone:#ceccce; 
			--light_tone:#efedef;
			--highlight: #04EAF5;
			--code_color: #6ead3a;
}

*{	transition-all: 250ms;
	box-sizing: border-box;
}
code{
	font-family: 'Share Tech Mono', monospace;
	color: var(--code_color);
}
body{
background: var(--light_tone);
	color: var(--text_color);
	/*undo browser presets*/
	padding: 0;
	margin: 0;
	
}

#navbar{
	position: fixed;
	width: 20%;
	height: 100vh;
	text-align: center;
	background: var(--dark_tone);
	border-right: .075rem solid var(--text_color);
}

#navbar header{
	background:var(--text_color);
	color: var(--light_tone);
	font-size:1.25rem;
}

.link-container{
	height:100vh;
	list-style: none;
	display: grid;
	grid-template-rows: repeat(5, 1fr);
  	grid-template-columns: 1fr;
	grid-gap: .5rem;
	
	align-items: space-around;
	justify-content: center;
	

}


.nav-link{
	display: grid;
	

	align-content: center;
	justify-content: center;
	text-decoration: none;
	color: var(--medium_tone);

	
}
.link{
	
	border-top: .1rem solid;
	border-bottom: .1rem solid;
	padding: .25rem 2.5rem;
	border-radius:.125rem;
	border-color: var(--highlight);
}
.link:hover{
	border-top: .12rem solid;
	border-bottom: .12rem solid;
	border-color: var(--highlight);
}
.nav-link:hover {
	color: var(--light_tone);	
}

#main-doc{
	position:relative;
	left: 20%;	
	width: 80%;
	padding: 2% 2%;
	border-left: .125rem solid var(--highlight);
  
}

.main-doc-header{
	height: 30vh;
	background: var(--dark_tone); 
	border: .01em solid var(--highlight);
	padding: .2rem;
}
/*=======================Grid within header======*/
.portfolio{
 display: grid;
  height: 100%;
  grid-template-rows: repeat(6, 1fr);
  grid-template-columns: repeat(5, 1fr);
  grid-gap: .2rem;		
}

.portfolio-item{ 		
	
  	font-weight: 700;
 	position: relative;
  	font-size: 1.75em;
  	background-size: cover;
  	background-position: center;
	background-repeat: no-repeat;
	opacity: .5;
	border: .01em solid var(--highlight);
	
}
.portfolio-item.portfolio-item-1{
  grid-row: 4/ 5;
  grid-column:3 / 4; 	
  background-image: url(//unsplash.it/200/400/?random); 
	 
}

 .portfolio-item-2{
  grid-row:1 / 3;
  grid-column:1 / 3; 	
  background-image: url(//unsplash.it/900/700/?random);	 
	 

}

.portfolio-item.portfolio-item-3{	
  grid-row:1 /4 ;
  grid-column:3 /6; 	
  background-image: url(https://picsum.photos/600/200/?random);	 
}

.portfolio-item.portfolio-item-4{
  grid-row: 3/ 5;
  grid-column: 1/3 ; 	
	 background-image: url(//unsplash.it/900/600/); 
}

.portfolio-item.portfolio-item-5{
	 grid-row:5/7 ;
  	 grid-column: 1/4 ; 	
	  background-image: url(//unsplash.it/4100/1600/?random);
}

.portfolio-item.portfolio-item-6{
  grid-row:4 /7 ;
  grid-column:4 /5 ; 	
	 background-image: url(//unsplash.it/800/600/?random); 
}
.portfolio-item.portfolio-item-7{
  grid-row:4 /7 ;
  grid-column:5 /6 ; 	
	 background-image: url(//unsplash.it/900/600/?random); 
}
.title{
	color: var(--light_tone);
	-webkit-text-stroke-width: .05rem;
    -webkit-text-stroke-color: var(--text_color);
	font-family: 'Share Tech Mono', monospace;
	font-size:  4.5rem;
	display: grid;
	z-index: 3;
	grid-row: 3/5;
	grid-column: 1 /6;
	align-content: center;
	justify-content: center;
	
}
/*=======================End Grid within header======*/

.main-section header{
	font-size: 1.5rem;
	color:var(--dark_tone);	
	margin-top
	
}

.main-section ul header{
	color:var(--dark_tone);	
}


/*=====================================@media==============*/


@media (max-width: 700px) /*sets font smaller for tablets and landscape phones*/
{	:root{ font-size: 2.8vw;
	}

}/*end====================*/

@media (max-width: 700px) /*reshapes navbar*/
{	
#navbar{
	position: fixed;
	top:0;
	left:0;
	width: 100%;
	height: 4rem;	
	z-index:5;
}
	
#main-doc{
	
	position: relative;
	top: 6%;
	left: 0;
	width:100%;
	border-left: .0rem solid transparent;
	
}	

	.main-doc-header{
		margin-top: 4rem;
	}	
		
	.flip{
	overflow-x: auto;
	overflow-y: hidden;	
	}
	
.link-container{
	
	
	display: flex;
	width: 150vw;
	height: 100%;
	
	align-items: center;
	justify-content: space-between;
	
	
}
	
	
}/*end====================*/


              
            
!

JS

              
                
              
            
!
999px

Console