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

              
                <div class="header">
			<img id="hogwarts-crest-1"  src="http://cdn.playbuzz.com/cdn/fb7d87f3-d79f-4d9d-975a-79463946bae9/c68f36ac-a619-44df-8b25-9fdadaa77ef8.png" alt="hogwarts crest left">
			<img id="hogwarts-crest-2"  src="http://cdn.playbuzz.com/cdn/fb7d87f3-d79f-4d9d-975a-79463946bae9/c68f36ac-a619-44df-8b25-9fdadaa77ef8.png" alt="hogwarts crest right">
			<p id="header-text-1">Hogwarts School</p>
			<p id="header-text-2">of Witchcraft and Wizardry</p>
			<p id="header-text-3">Regarded by many as the finest school in the wizarding world, Hogwarts is divided into four houses, each bearing the name of its founder: Godric Gryffindor, Helga Hufflepuff, Rowena Ravenclaw and Salazar Slytherin. The Sorting Hat places young witches and wizards into one of these legendary houses based on their personal traits. Here then, is an overview of the four houses of Hogwarts.</p>
		</div>

		<div class="main-body">
			<table class="table">
				<tr class="row-1">
					<td class="table-cell redbox">
						<h1>Gryffindor House</h1>
						<a href="https://www.pottermore.com/collection/all-about-gryffindor"><img  src="http://vignette1.wikia.nocookie.net/harrypotter/images/8/8e/0.31_Gryffindor_Crest_Transparent.png/revision/latest?cb=20161124074004" alt="gryffindor crest"></a>
						<ul>
							<li><strong>Founder: </strong>Godric Gryffindor</li>
							<li><strong>Qualities: </strong>Bravery, daring, determination, courage</li>
							<li><strong>Animal: </strong>Lion</li>
							<li><strong>Colors: </strong>Scarlet, gold</li>
							<li><strong>Element: </strong>Fire</li>
							<li><strong>Head of House: </strong>Minerva McGonagall</li>
							<li><strong>Common Room: </strong>Gryffindor Tower</li>
							<li><strong>House Ghost: </strong>Nearly Headless Nick</li>
							<li><strong>Notable Members: </strong>Albus Dumbledore, Harry Potter, <br>Celestina Warbeck</li>
						</ul>
					</td>
					<td class="table-cell yellowbox">
						<h1>Hufflepuff House</h1>
						<a href="https://www.pottermore.com/collection/all-about-hufflepuff"><img  src="http://vignette2.wikia.nocookie.net/harrypotter/images/5/50/0.51_Hufflepuff_Crest_Transparent.png/revision/latest?cb=20161020182518" alt="hufflepuff crest"></a>
						<ul>
							<li><strong>Founder: </strong>Helga Hufflepuff</li>
							<li><strong>Qualities: </strong>Hard work, dedication, patience, loyalty</li>
							<li><strong>Animal: </strong>Badger</li>
							<li><strong>Colors: </strong>Yellow, black</li>
							<li><strong>Element: </strong>Earth</li>
							<li><strong>Head of House: </strong>Pomona Sprout</li>
							<li><strong>Common Room: </strong>Hufflepuff Basement</li>
							<li><strong>House Ghost: </strong>The Fat Friar</li>
							<li><strong>Notable Members: </strong>Hengist of Woodcroft, Newt Scamander, Artemisia Lufkin</li>
						</ul>
					</td>
				</tr>
				<tr class="row-2">
					<td class="table-cell bluebox">
						<h1>Ravenclaw House</h1>
						<a href="https://www.pottermore.com/collection/all-about-ravenclaw"><img  src="http://vignette2.wikia.nocookie.net/harrypotter/images/2/29/0.41_Ravenclaw_Crest_Transparent.png/revision/latest?cb=20161020182442" alt="hufflepuff crest"></a>
						<ul>
							<li><strong>Founder: </strong>Rowena Ravenclaw</li>
							<li><strong>Qualities: </strong>Intelligence, knowledge, wit, creativity</li>
							<li><strong>Animal: </strong>Eagle</li>
							<li><strong>Colors: </strong>Blue, bronze</li>
							<li><strong>Element: </strong>Air</li>
							<li><strong>Head of House: </strong>Filius Flitwick</li>
							<li><strong>Common Room: </strong>Ravenclaw Tower</li>
							<li><strong>House Ghost: </strong>The Grey Lady</li>
							<li><strong>Notable Members: </strong>Gilderoy Lockheart, Ignatia Wildsmith, Garrick Ollivander</li>
						</ul>
					</td>
					<td class="table-cell greenbox">
						<h1>Slytherin House</h1>
						<a href="https://www.pottermore.com/collection/all-about-slytherin"><img  src="http://vignette4.wikia.nocookie.net/harrypotter/images/d/d3/0.61_Slytherin_Crest_Transparent.png/revision/latest?cb=20161020182557" alt="hufflepuff crest"></a>
						<ul>
							<li><strong>Founder: </strong>Salazar Slytherin</li>
							<li><strong>Qualities: </strong>Ambition, cunning, resourcefulness, self-preservation</li>
							<li><strong>Animal: </strong>Snake</li>
							<li><strong>Colors: </strong>Green, silver</li>
							<li><strong>Element: </strong>Water</li>
							<li><strong>Head of House: </strong>Severus Snape</li>
							<li><strong>Common Room: </strong>Slytherin Dungeon</li>
							<li><strong>House Ghost: </strong>The Bloody Baron</li>
							<li><strong>Notable Members: </strong>Merlin, Tom Riddle, Horace Slughorn, Bellatrix Lestrange</li>
						</ul>
					</td>
				</tr>
				<tfoot>
					<tr>
						<td id="table-footer" colspan="2">
							<p>(The four houses of Hogwarts. Click on a crest to learn more about each house.)</p>
						</td>
					</tr>
				</tfoot>
			</table>
		</div>

		<div class="footer">
			<p>Operation: Lars Codus</p>
			<p>Project: FCC - Tribute Page</p>
			<p>Designed and Coded</p>
			<p>by Marty McAlpine</p>
			<p>January 2017</p>
		</div>
              
            
!

CSS

              
                .header {
	height: 500px;
	background-color: #dfdfdf;
	background-image: url("https://www.transparenttextures.com/patterns/white-tiles.png");
}
#header-text-1 {
	font-family: HARRYP;
	font-size: 125px;
	margin-top: 0;
	padding-top: 75px;
	line-height: 1em;
}
#header-text-2 {
	font-family: HARRYP;
	font-size: 48px;
	margin-top: -90px;
	padding-top: 0px;
	line-height: 0em;
}
#header-text-3 {
	font-family: 'Averia Serif Libre', cursive;
	font-size: 18px;
	color: #454545;
	padding: 20px;
	margin 0 auto;
}
#hogwarts-crest-1 {
	width: 18%;
	float: left;
	margin: 125px 50px 50px 110px;
}
#hogwarts-crest-2 {
	width: 18%;
	float: right;
	margin: 125px 110px 50px 50px;
}
@media only screen and (min-width: 1000px) {

   body { font-size: 1em; }

}
.main-body {
	background-color: #dfdfdf;
	background-image: url("https://www.transparenttextures.com/patterns/white-tiles.png");
}
.table {
	margin: 0 auto;
	border-collapse: separate;
	border-spacing: 2em 2em;
}
.table-cell {
	width: 550px;
	height: 450px;
}
.table-cell h1 {
	text-align: center;
	font-family: 'IM Fell English SC';
}
.table-cell img {
	width: 185px;
	float: right;
	margin-right: 25px;
}
ul {
	list-style: none;
	line-height: 2em;
	font-size: 18px;
	font-family: 'Averia Serif Libre';
}
p {
	text-align: center;
}
.redbox {
	border: 3px solid #ffd700;
	background-color: #e62000;
	background-image: url("https://www.transparenttextures.com/patterns/white-diamond.png");
	color: #000000;
}
.yellowbox {
	border: 3px solid #000000;
	background-color: #ffd700;
	background-image: url("https://www.transparenttextures.com/patterns/fake-luxury.png");
	color: #000000;
}
.bluebox {
	border: 3px solid #cd7f32;
	background-color: #3280cd;
	background-image: url("https://www.transparenttextures.com/patterns/always-grey.png");
	color: #000000;
}
.greenbox {
	border: 2px solid #c0c0c0;
	background-color: #008000;
	background-image: url("https://www.transparenttextures.com/patterns/straws.png");
	color: #000000;
}

.footer {
	height: 200px;
	background-color: #636363;
	background-image: url("https://www.transparenttextures.com/patterns/my-little-plaid-dark.png");
}
.footer p {
	text-align: justify;
	color: #fdfdfd;
	margin-top: -15px;
	padding: 15px;
	font-family: 'lora';
	line-height: 0em;
	font-size: 12px;
}
#table-footer {
	line-height: 0em;
	font-style: italic;
	font-family: 'Averia Serif Libre';
	color: #454545;
	margin-top: 0;
}

              
            
!

JS

              
                
              
            
!
999px

Console