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

              
                <body>
	<div id="head-container">
		<header>
			<p>Swartz Codecademy</p>
		</header>

		<nav id="nav-container">
			<li class="nav-button"><a href="#home">Home</a></li>
			<li class="nav-button"><a href="#about">About</a></li>
			<li class="nav-button"><a href="#pricing">Pricing</a></li>
			<li class="nav-button"><a href="#contact">Contact</a></li>
		</nav>
	</div>

	<div id="home">
		<div id="homewrapper">
			<div id="homewrapper1">
				<h1>Want to learn web development?</h1>
			</div>
			<div id="homewrapper2">
				<p class="title-paragraph">We can help you with that.</p>
			</div>
			<div id="homewrapper3">
				<button id="learn-now-button">Start Learning Now</button>
			</div>
		</div>
	</div>

	<div id="about">
		<div id="about-wrapper">
			<h2>About Us</h2>
			<p>John Swartz started<span class="companyname"> Swartz Codecademy</span>, an online coding bootcamp, in 2010 because he believes that the more people understand how the world wide web works, the faster it will progress. In order to reach people, he offers cheap and quality coding education.</p>
			<p>Over the years, <span class="companyname"> Swartz Codecademy </span>have been able to teach more than 20,000 people and counting. Some of them are now <span class="working">working</span> in big tech companies like Amazon, Microsoft, Apple and etc.</p>
			<p>In 2021,<span class="companyname"> Swartz Codecademy</span> have a plan to make physical branches in Asia, Africa, and South America.</p>
		</div>
	</div>

	<div id="pricing">
		<h2>What We Offer?</h2>
		<div id="products-container">
			<div id="html-container" class="Product">
				<img src="https://img.icons8.com/color/96/000000/html-5.png" alt="HTML5 LOGO" />
				<h4>Php 1000</h4>
				<hr>
				<p>Learn HTML5 in 3 days</p>
				<p>5 hours a day</p>
				<button class="cart-button">Add to cart</button>
			</div>
			<div id="css-container" class="Product">
				<img src="https://img.icons8.com/color/96/000000/css3.png" alt="CSS3 LOGO" />
				<h4>Php 1000</h4>
				<hr>
				<p>Learn CSS3 in 7 days</p>
				<p>5 hours a day</p>
				<button class="cart-button">Add to cart</button>
			</div>
			<div id="javascript-container" class="Product">
				<img src="https://img.icons8.com/color/96/000000/javascript-logo-1.png" alt="JAVASCIPT LOGO" />
				<h4>Php 2000</h4>
				<hr>
				<p>Learn JAVASCIPT in 10 days</p>
				<p>5 hours a day</p>
				<button class="cart-button">Add to cart</button>
			</div>
		</div>
	</div>

	<div id="contact">
		<h2>Contact Us</h2>
			<form action="#" method="get">
				<p>
					<label for="name">Name</label>
					<input type="text" name="name" id="name" placeholder="Your name" required="required">
				</p>
				<p>
					<label for="email">Email</label>
					<input type="" name="email" id="email" placeholder="Your email" required="required">
				</p>
				<p>
					<label for="message">Message</label>
					<textarea name="message" placeholder="Your Message"></textarea>
				</p>
				<p>
					<button id="send-button">Send</button>
				</p>

			</form>
	</div>

	<footer>
		<p>&copy;2020 JCCNNN</p>
	</footer>
</body>
              
            
!

CSS

              
                html {
	font-size: 10px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-size: 16px;
	font-family: "gentium basic", sans-serif;
	text-align: center;
	color: white;
	background-image: linear-gradient(to left, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),  url(https://images.unsplash.com/photo-1544847558-3ccacb31ee7f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80);
	background-position: center;
	background-attachment: fixed;
	background-size: cover;
}

span.companyname {
	font-family: "great vibes", sans-serif;
}
/* This is for nav bar This is for nav bar This is for nav bar This is for nav bar*/

div#head-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 4rem;
	background-color: black;
	color:white;
}

nav#nav-container {
	display: flex;
	justify-content: space-between;
	width: 25vw;
	margin-right: 4rem;
}

header p{
	font-family: "great vibes", sans-serif;
	text-align: left;
	margin-left: 4rem;
}

li {
	list-style-type: none;
}

a:link, a:visited {
	color: white;
	text-decoration: none;
}
a:hover {
	text-shadow: 1px 1px 10px white;
}

/*END OF NAV BAR END OF NAV BAR END OF NAV BAR END OF NAV BAR*/

/*HOME PAGE HOME PAGE HOME PAGE HOME PAGE HOME PAGE HOME PAGE*/

div#home {
	display: flex;
	text-align: right;
	text-shadow: 0px 0px 5px black;
	font-size: 32px;
	min-height: 100vh;
}

div#homewrapper {
	margin: auto 4rem auto 50vw;
}

button#learn-now-button {
	font-size: 16px;
	border-radius: 10rem;
	margin-top: 2rem;
	width: 20rem;
	height: 4rem;
  border: 1px solid black;
	outline: none;
}

button#learn-now-button:active {
   background-color: rgba(0, 0, 0, 0);
   color: white;
   border: 1px solid white;
  }

button#learn-now-button:hover {
	cursor: pointer;
}

/*END OF HOME PAGE END OF HOME PAGE END OF HOME PAGE END OF HOME PAGE*/

/*About Us*/
div#about {
	display: flex;
	flex-direction: column;
	background-color: white;
	color: black;
	font-size: 18px;
	min-height: 60vh;
}

div#about-wrapper {
	margin: auto 25vw;
}

div#about-wrapper h2 {
	margin-bottom: 2rem;
}

/*End of About Us*/


/*pricing section*/

div#pricing {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	font-size: 18px;
	justify-content: space-around;
}

div#products-container {
	display: flex;
	align-items: center;
	justify-content: space-around;
}

.Product {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
	border: 2px solid white;
	box-shadow: 0px 0px 5px white;
	width: 20vw;
	min-height: 60vh;
}

img ~ h4 {
	font-family: montserrat, sans-serif;
	font-size: 27px;
}

hr {
	width: 75%;
	border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
}

.cart-button {
	color: white;
	border: 1px solid white;
	border-radius: 2rem;
	outline: none;
	padding: 1rem;
	background-color: rgba(255, 255, 255, 0)
}

.cart-button:active {
	color: black;
	border: 1px solid black;
	background-color: white;
}


/*end of pricing section*/

/*Contact page*/

div#contact {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	font-size: 18px;
	background-color: white;
	color: black;
	min-height: 70vh;
}

div#contact h2 {
	padding-top: 2rem;
}

form {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 40vh;
	margin: 0 auto 8rem auto;
	text-align: right;
}

input {
	padding-left: 1rem;
	border-radius: 2rem;
	height:3.2rem;
	width: 25rem;
	outline: none;
	border: 1px solid black;
}

textarea {
	padding-top: 1rem;
	padding-left: 1rem;
	width: 25rem;
	height: 6rem;
	border-radius: 2rem;
	border: 1px solid black;
	font-family: "Gentium Basic", sans-serif;
}

form > p {
	margin-top: none;
}

form p {
	display: flex;
	flex-direction: column;
	align-items: center;
}

label {
	margin-top: 1rem;
	margin-bottom: 1rem;
}

#send-button {
	outline: none;
	width: 15rem;
	border-radius: 2rem;
	height: 3rem;
	margin-top: 2rem;
  	border: 1px solid black;
}

#send-button:active {
  background-color: black;
  color: white;
}
/*end of Contact page*/

.working {
  text-decoration: line-through;
}


@media (max-width: 1106px) {

	div#homewrapper {
	margin: auto 4rem auto 40vw;
	}

	div#pricing {
		height: 160vh;
	}

	div#pricing {
		margin-top: 5rem;
	}

	div#products-container {;
		flex-wrap: wrap;
		justify-content: center;
	}

	div.Product {
		margin-left: 5rem;
		margin-right: 5rem;
		margin-top: 5rem;
		width: 25rem;
		height:;
	}

} 

@media (max-width: 920px) {

	div#homewrapper {
	margin: auto 4rem auto 30vw;
	}

}

@media (max-width: 850px) {

	nav#nav-container {
		width: 41vw;
	}

	div#home {
		display: flex;
		flex-direction: column;
		font-size: 24px;
	}

	button#learn-now-button {
	font-size: 16px;
	width: 20rem;
	height: 3.5rem;
	outline: none;
	}

	div#about-wrapper {
	margin: auto 20vw;
	}
}

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

	div#pricing {
		height: 225vh;
	}
}

@media (max-width: 687px) {
  div#about {
    height: 80vh;
  }
}

@media (max-width: 608px) {

	div#home {
		font-size: 20px;
	}

	div#about-wrapper {
	margin: auto 15vw;
	}
  
  div#about {
    height: 60vh;
  }
  
}

@media (max-width: 560px) {

	div#head-container {
		display: flex;
		flex-direction: column;
		align-items: center;
		height: 4.5rem;
		background-color: black;
	}

	header p {
		font-size: 2rem;
		text-align: center;
		margin-left: 0;
	}

	nav#nav-container {
		display: flex;
		width: 100vw;
		margin: -0.3rem 1rem 0.5rem;
		justify-content: space-around;
	}

	div#home {
		display: flex;
		justify-content: center;
		text-align: center;
		font-size: 16px;
		height: 50vh;
	}

	div#homewrapper {
		display: flex;
		flex-direction: column;
		justify-content: center;
		margin: 5%;
	}

	div#about {
		font-size: 14px;
	}

	div#about-wrapper {
	margin: auto 5vw;
	}
}


              
            
!

JS

              
                // Will recreate this pos 
              
            
!
999px

Console