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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <meta name="viewport" content="width=device-width, initial-scale=1.0">
<div id="welcome-section">
	<article class="welcome-text">
		<h1><i>Smarty Marty's Portfolio</i></h1><br>
		<p><i>Just keeping that brain engaged!</i></p>
		<hr>
	</article>

	<article class="khan">
		<h2><a href="https://www.khanacademy.org/computer-programming/spin-off-of-danteoptical/5946841547866112">Spin-off of "dante"optical</a></h2>
		<script src="https://www.khanacademy.org/computer-programming/spin-off-of-danteoptical/5946841547866112/embed.js?editor=no&buttons=no&author=yes&embed=yes"></script>
		<p>Made using: <a href="http://www.khanacademy.org/computer-programming">Khan Academy Computer Science</a></p>
	</article>

</div>
<!--end of welcome-section-->

<div id="projects">
	<div class="project-tile">

		<article class="project">
			<a target="_blank" href="https://codepen.io/martin21/pen/PoZqbdQ">
				<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcTd2nAMVtdnIdoV1dmoj6Epn_8LbFIoXHFZvvWwCSGMaK96RUoy&usqp=CAU"><br> Have a Chat</a>
			<p>The first of my parctice pen, just trying to get the ideas on to some kind of structure. </p>
		</article>

		<article class="project">
			<a target="_blank" href="https://codepen.io/martin21/pen/bGEwxqK">
				<img src="https://upload.wikimedia.org/wikipedia/en/9/93/Low_%28album%29.jpg" alt="Record cover for Bowie"><br> Bowie</a>
			<p>The second of my pens, finding lots of images to use. </p>
		</article>

		<article class="project">
			<a target="_blank" href="https://www.khanacademy.org/profile/polymartin21/projects">
				<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcSwxgaNbn3B2Pq3TIQLQ0lW2Jsk06Q1eNIEQA&usqp=CAU" alt="Khan Academy Logo" width="220"><br>Khan Acadamey Projects</a>

			<p>I have been learning computer programing on Khan for about 3 years. These include saved copies of other's as well as my own projects. </p>
		</article>

		<article class="project">
			<a target="_blank" href="https://codepen.io/martin21/pen/YzweXEj">
				<img src="https://i.ytimg.com/vi/_xZbY0sEkPU/maxresdefault.jpg" alt="Image from my computer" width="300"><br>Form in flexbox</a>
			<p>A project in flexbox form building. Image is just a google image.</p>
		</article>

		<article class="project">

			<a target="_blank" href="https://codepen.io/martin21/pen/abdZqjj">
				<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/9c/Rayonnages_Bibliotheque_Mazarine_Paris_n2.jpg/220px-Rayonnages_Bibliotheque_Mazarine_Paris_n2.jpg" alt="Book case of big old books" width="300"><br> Technical page task</a>
			<p>I describe how to code the bookcase project in Khan.</p>

		</article>

	</div>
	<!--end project-tile-->
</div>
<!--end of projects-->

<div id="navbar">
	<ul>
		<li><a href="#projects">Projects</a></li>
		<li><a href="#"> Contact us</a></li>
		<li><a id="profile-link" target="_blank" href="https://www.freecodecamp.org/fccdb9803bb-a189-4e64-ba37-7dbccd567422">My Free Code Camp Portfolio</a></li>
	</ul>
</div>
<!--end navbar-->
<footer>
	<p>e-mail: sMarty@tpg.com</p>
</footer>
              
            
!

CSS

              
                img{ height:15em;
}


#welcome-section{
	display:flex;
	height: 100vh;
	width: 100vw;
	margin-top:6vh;
	background-color: goldenrod;
	display:flex;
	justify-content:space-evenly;
	align-items:center;
	flex: 1 0 auto;
	flex-wrap:flex;
}
.welcome-text{
	text-align: center;
	font-family: cursive;
	font-size:135%;
	color:blue;
	line-height: 0.1em;
}
.khan{
	size:20vh 20vh;
	transform:scale(0.7,0.7);
	
	
}
#navbar, ul{
	top:0px;
	position: fixed;
	background-color:coral;	
	display:inline-flex;
	width: 100vw;
	justify-content: space-evenly;
	align-items:center;
	height: 6vh;
	font-size: 1.1em;
	//padding: ;
	list-style:none;	
  padding-bottom:4vh;
}


.project-tile{
	display:flex;	
	justify-content: space-between;
	background-color:palegreen;
	flex-wrap:wrap;
	text-align:center;
	
}
.project {
	width: 18%;
}
	
	

footer{
	display:flex;
	justify-content:center;
	background-color: lightgray;
}
	



@media only screen and (max-width: 600px){
	#welcome-section{	
	Display: flex;
	flex-direction:column;
		margin-top:10%;
	justify-content:start;	
	align-content:space-between;
	height: 100vh;
	width: 100vw;
	background-color: green;	
	flex-direction:center;
		//align-content:start;
	}
.welcome-text{
	display:flex-end;
	
	margin:10%;
	font-family: cursive;
	font-size:85%;
}
.khan{
	margin-top:-35%;
		transform:scale(0.5,0.5);
	}
	
	#navbar, ul{
	top:0;
	position: fixed;
	background-color:coral;
	
	display:inline-flex;
	align-self:center;

	width: 98vw;
	justify-content: space-evenly;
	height: 5vh;
	font-size: 15px;
	padding: 4vh;
		list-style:none;	}
	

	
.project-tile {
	
	justify-content:center;
		
	text-align:center;
	}
	.project {
	width: 80%;
}
	img {margin-top:4em;}
	
	
	
	

	
}	

	



              
            
!

JS

              
                
              
            
!
999px

Console