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>
<!-- 
html and css resources: https://www.w3schools.com/
---
i have my own resource page with a ton of links so feel free to check that out if you're looking for more codes / graphics to decorate your page with / etc: 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>TITLE</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 reloaded -->
		</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">
					coded by <a href="https://doqmeat.neocities.org/" target="_blank">doqmeat</a>. credit not required but a link back to me is appreciated
					<br><br>
					if you wish you have everything in one HTML file just copy paste the <a href="https://github.com/doqmeat/HTML-templates/blob/main/notebook/index.html" target="_blank">github version</a>
					<br><br>
					<a href="https://doqmeat.neocities.org/notebook/F2U/preview/notebook" target="_blank">live preview</a> of this template on my site.

					<!-- TAB 1 left paper end divs -->
				</div>
			</div>
			<div id="tab1-p" class="paper right">
				text goes here
				<!-- 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

	<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;
		}

		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 */
			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 itor 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://doqmeat.neocities.org/!g/web/materials/spiral-test4.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://doqmeat.neocities.org/!g/bg/whiteline.jpg);
			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 {
			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 TAB pages. take TAB 2 for example: */

		#tab2-p {
			font-family: consolas;
			font-size: 14px;
			background: url(https://doqmeat.neocities.org/!g/bg/yellobg.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 */
		.tab button:focus,
		.tab2 button:focus {
			top: 0px;
			cursor: -webkit-grabbing;
			cursor: grabbing;
			box-shadow: 1px 1px 20px 1px grey;
		}

		/* so pages stay hidden */
		.tabcontent {
			display: 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 tabcontent = document.getElementById(tabName);
	var otherContent = document.getElementsByClassName("tabcontent");
var defaultOpen = document.getElementById("defaultOpen");
	for (i = 0; i < otherContent.length; i++) {
		otherContent[i].style.display = "none";
	}
	tabcontent.style.display = "block";
}
document.getElementById("defaultOpen").click();

              
            
!
999px

Console