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

              
                <!DOCTYPE HTML>
<html>
<!-- 
feel free to remove all of this!
---
template coded by doqmeat.
---
live preview: https://doqmeat.com/notebook/F2U/preview/notebook
---
more html and css resources @ https://www.w3schools.com/ +  https://developer.mozilla.org/en-US/docs/Learn/HTML
---
more resources + graphics links can be found here if you need some pointers https://doqmeat.com/notebook
---
feel free to contact me for any questions! -->

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>notebook template</title>
	<link rel="icon" type="image/x-icon" href="IMG-URL-FOR-FAVICON">
</head>

<body>

	<!-- 	NOTEBOOK wrapper -->
	<div id="wrapper-index">

		<div class="tab">
			<button class="tablinks tab4-b" onclick="openTab('tab4-wrapper')">tab 4</button>
			<button class="tablinks tab3-b" onclick="openTab('tab3-wrapper')">tab 3</button>
			<button class="tablinks tab2-b" onclick="openTab('tab2-wrapper')">tab 2</button>
			<button class="tablinks tab1-b" onclick="openTab('tab1-wrapper')" id="defaultOpen">tab 1</button> <!-- 	id="defaultOpen" chooses which tab the notebook will have open when page is loaded -->
		</div>

		<div class="tab2">
			<button class="tablinks tab5-b" onclick="openTab('tab5-wrapper')">tab 5</button>
			<button class="tablinks tab6-b" onclick="openTab('tab6-wrapper')">tab 6</button>
			<button class="tablinks tab7-b" onclick="openTab('tab7-wrapper')">tab 7</button>
			<button class="tablinks tab8-b" onclick="openTab('tab8-wrapper')">tab 8</button>
		</div>

		<!-- 	TAB 1 wrapper -->
		<div id="tab1-wrapper" class="tabcontent">
			<div id="tab1-p" class="paper left">
				<div class="left-in">
					<p><img src="https://doqmeat.com/collection/cats/!g/computercat.jpg" width="40%" align="left" style="margin:10px;">Mouser turkish angora siberian mouser. Puma kitty, cornish rex so panther. Donskoy burmese bengal malkin panther. Savannah tiger havana brown yet bobcat norwegian forest. Ocicat singapura yet sphynx, but devonshire rex tomcat. Norwegian forest balinese grimalkin mouser. Munchkin bengal, but bengal american shorthair. Burmese maine coon malkin or cornish rex or birman but maine coon, but birman. Panther puma thai.</p>

					<p><img src="https://doqmeat.com/collection/cats/!g/creatureofjoy.jpg" width="40%" align="right" style="margin:10px;">Mouser turkish angora siberian mouser. Puma kitty, cornish rex so panther. Donskoy burmese bengal malkin panther. Savannah devonshire rex yet egyptian mau norwegian forest singapura yet lion but ragdoll. American shorthair ragdoll so tom so persian ocicat and puma for mouser. Scottish fold norwegian forest. Savannah tiger havana brown yet bobcat norwegian forest. Ocicat singapura yet sphynx, but devonshire rex tomcat. Norwegian forest balinese grimalkin mouser. Munchkin bengal, but bengal american shorthair. Burmese maine coon malkin or cornish rex or birman but maine coon, but birman. Panther puma thai.</p>
					<!-- TAB 1 left paper end divs -->
				</div>
			</div>
			<div id="tab1-p" class="paper right">
				<p><img src="https://doqmeat.com/collection/cats/!g/computercat.jpg" width="40%" align="left" style="margin:10px;">Mouser turkish angora siberian mouser. Puma kitty, cornish rex so panther. Donskoy burmese bengal malkin panther. Savannah tiger havana brown yet bobcat norwegian forest. Ocicat singapura yet sphynx, but devonshire rex tomcat. Norwegian forest balinese grimalkin mouser. Munchkin bengal, but bengal american shorthair. Burmese maine coon malkin or cornish rex or birman but maine coon, but birman. Panther puma thai.</p>

				<p><img src="https://doqmeat.com/collection/cats/!g/creatureofjoy.jpg" width="40%" align="right" style="margin:10px;">Mouser turkish angora siberian mouser. Puma kitty, cornish rex so panther. Donskoy burmese bengal malkin panther. Savannah devonshire rex yet egyptian mau norwegian forest singapura yet lion but ragdoll. American shorthair ragdoll so tom so persian ocicat and puma for mouser. Scottish fold norwegian forest. Savannah tiger havana brown yet bobcat norwegian forest. Ocicat singapura yet sphynx, but devonshire rex tomcat. Norwegian forest balinese grimalkin mouser. Munchkin bengal, but bengal american shorthair. Burmese maine coon malkin or cornish rex or birman but maine coon, but birman. Panther puma thai.</p>
				<!-- TAB 1 right paper end divs -->
			</div>
			<!-- 	TAB 1 wrapper end div -->
		</div>

		<!-- TAB 2 wrapper -->
		<div id="tab2-wrapper" class="tabcontent">
			<div id="tab2-p" class="paper left">
				<div class="left-in">
					tab 2 pages

					<!-- TAB 2 left paper end divs -->
				</div>
			</div>
			<div id="tab2-p" class="paper right">
				text goes here

				<!-- TAB 2 right paper end div -->
			</div>
			<!-- TAB 2 wrapper end div -->
		</div>

		<div id="tab3-wrapper" class="tabcontent">
			<div id="tab3-p" class="paper left">
				<div class="left-in">
					text goes here

				</div>
			</div>
			<div id="tab3-p" class="paper right">
				tab 3 pages

			</div>
		</div>

		<div id="tab4-wrapper" class="tabcontent">
			<div id="tab4-p" class="paper left">
				<div class="left-in">
					tab 4 pages

				</div>
			</div>
			<div id="tab4-p" class="paper right">
				text goes here!


			</div>
		</div>


		<div id="tab5-wrapper" class="tabcontent">
			<div id="tab5-p" class="paper left">
				<div class="left-in">
					tab 5 pages

				</div>
			</div>
			<div id="tab5-p" class="paper right">
				text goes here!

			</div>
		</div>

		<div id="tab6-wrapper" class="tabcontent">
			<div id="tab6-p" class="paper left">
				<div class="left-in">
					text goes here

				</div>
			</div>
			<div id="tab6-p" class="paper right">
				text goes here

			</div>
		</div>

		<div id="tab7-wrapper" class="tabcontent">
			<div id="tab7-p" class="paper left">
				<div class="left-in">
					text goes here

				</div>
			</div>
			<div id="tab7-p" class="paper right">
				text goes here

			</div>
		</div>

		<div id="tab8-wrapper" class="tabcontent">
			<div id="tab8-p" class="paper left">
				<div class="left-in">
					text goes here

				</div>
			</div>
			<div id="tab8-p" class="paper right">
				text goes here

			</div>
		</div>


		<!-- TEMPLATE for new set of TAB pages that you can copypaste

	<div id="tab[num]-wrapper" class="tabcontent">
	<div id="tab[num]-p" class="paper left">
 <div class="left-in">
		text goes here

		</div></div>
	<div id="tab[num]-p" class="paper right">
		text goes here

	</div></div>

-->

		<!-- NOTEBOOK wrapper end div -->
	</div>
</body>

</html>
              
            
!

CSS

              
                
		html {
			/* feel free to delete this if you just want the normal cursor! */
			cursor: cell;
			scrollbar-color: #c5dca0 #add8e6;
			/*			scrollbar for firefox users*/
		}

		body {
			background: lightblue;
			margin: 0px;
			word-wrap: break-word;
			font-size: 19px;
			line-height: 25px;
			word-spacing: 4px;
			font-family: ms pgothic, arial;
			/* ms pgothic is not compatible with safari or mobile devices*/
			color: black;
		}

		mark {
			background: lightgoldenrodyellow;
		}

		#wrapper-index {
			/* the notebook's cover */
			background: lightgrey;
			position: relative;
			margin: auto;
			margin-top: 30px;
			margin-bottom: 35px;
			width: 1108px;
			padding: 20px 10px 15px 10px;
			border-radius: 20px;
			border: 1px solid black;
		}

		/*this is my ugly binder spiral! feel free to remove it or change it. it wont mess the rest of the code! */
		#tab1-wrapper:after,
		#tab2-wrapper:after,
		#tab3-wrapper:after,
		#tab4-wrapper:after,
		#tab5-wrapper:after,
		#tab6-wrapper:after,
		#tab7-wrapper:after,
		#tab8-wrapper:after {
			content: url(https://files.catbox.moe/4v6k8c.png);
			position: absolute;
			z-index: 10;
			transform: translate(-50%, -50%);
			-ms-transform: translate(-50%, -50%);
			top: 50%;
			left: 50%;
			pointer-events: none;
		}

		/* PAGES CSS */

		.paper {
			/*the CSS of both "pages" boxes. you can choose the look of ALL pages here */
			background: url(https://files.catbox.moe/evxip4.png);
			z-index: 5;
			position: relative;
			display: inline-block;
			box-sizing: border-box;
			border: 1px solid lightblue;
			height: 600px;
		}

		.left {
			width: 490px;
			margin-left: 50px;
			margin-right: 10px;
			border-radius: 10px 0px 0px 10px;
			overflow: hidden;
		}

		.left-in {
			/*			the main purpose of this class if so the scrollbar of left pages arent obscured by the bind spiral */
			padding: 15px 10px 15px 25px;
			height: 100%;
			margin-right: 15px;
			overflow: auto;
		}

		.right {
			padding: 15px 25px;
			width: 490px;
			margin-left: 10px;
			border-radius: 0px 10px 10px 0px;
			overflow: auto;
		}

		/* you can also customize the look of SPECIFIC pages. take TAB 2 for example: */

		#tab2-p {
			font-family: consolas;
			font-size: 14px;
			background: url(https://files.catbox.moe/bdbuwr.png);
			border-color: lightcoral;
		}

		/* tab buttons CSS stuff */

		.tab {
			/* for the ones on the left */
			width: 590px;
			height: 50px;
			position: absolute;
			transform: translate(-50%, -50%);
			-ms-transform: translate(-50%, -50%);
			rotate: -90deg;
			top: -10px;
			left: -232px;
		}

		.tab2 {
			/* for the ones on the right */
			width: 590px;
			height: 50px;
			position: absolute;
			transform: translate(-50%, -50%);
			-ms-transform: translate(-50%, -50%);
			rotate: 90deg;
			top: 590px;
			right: -232px;
		}

		.tab button,
		.tab2 button {
			/*this is the look of the TABS! */
			z-index: 1;
			position: relative;
			vertical-align: top;
			width: 120px;
			margin: 0px 8px;
			padding: 10px 0px 30px 0px;
			font-family: newpenji, ms pgothic;
			border: none;
			cursor: help;
			font-size: 19px;
			transition-duration: 0.5s;
			top: 10px;
			border-radius: 10px 10px 0 0;
			border: 1px solid grey;
		}

		/* here you can change the color of each individual TAB button*/
		.tab1-b {
			background: #C5DCA0;
		}

		.tab2-b {
			background: #B6A7DC;
		}

		.tab3-b {
			background: #F9DAD0;
		}

		.tab4-b {
			background: #F5F2B8;
		}

		.tab5-b {
			background: #F1B46A;
		}

		/* hover effect of TAB*/
		.tab button:hover,
		.tab2 button:hover {
			top: 0px;
			cursor: -webkit-grab;
			cursor: grab;
		}

		/* selected TAB effect aka when its focused */
		.tab button.active,
		.tab2 button.active {
			top: 0px;
			cursor: -webkit-grabbing;
			cursor: grabbing;
			box-shadow: 1px 1px 20px 1px grey;
			outline: none;
		}

		/* custom scrollbar for chrome users, firefox users cant see this */
		::-webkit-scrollbar {
			width: 8px;
			height: 8px;
		}

		::-webkit-scrollbar-thumb:vertical {
			background: white;
			border: 1px solid black;
			border-radius: 10px;
		}

		::-webkit-scrollbar-thumb:horizontal {
			background: white;
			border: 1px solid black;
			border-radius: 10px;
		}

		::-webkit-scrollbar-track {
			border-radius: 10px;
			background: transparent;
		}

              
            
!

JS

              
                function openTab(tabName) {
			var i;
			var tab = document.getElementById(tabName);
			var otherContent = document.getElementsByClassName("tabcontent");
			var defaultOpen = document.getElementById("defaultOpen");
			var buttons = document.getElementsByClassName("tablinks");
			for (i = 0; i < otherContent.length; i++) {
				otherContent[i].style.display = "none";
			}
			for (i = 0; i < buttons.length; i++) {
				buttons[i].classList.remove("active");
			}
			tab.style.display = "block";
			event.currentTarget.className += " active";
		}
		document.getElementById("defaultOpen").click();
              
            
!
999px

Console