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

              
                	<main>

		<h4>Basic Typography</h4>
		<p>
			Suspendisse rhoncus, est ac sollicitudin viverra, leo orci sagittis massa, sed condimentum est tortor a lectus. Curabitur porta feugiat ullamcorper. Integer
			lacinia mi id odio faucibus eget tincidunt nisl iaculis. Nam adipiscing hendrerit turpis, et porttitor felis
			sollicitudin et. Donec dictum massa ac neque accumsan tempor. Cras aliquam, ipsum sit amet laoreet
			hendrerit, purus <del>deleted text</del> sapien convallis dui, et porta leo ipsum ac nunc. Nullam ornare
			porta dui ac semper. Cras aliquam laoreet hendrerit. Quisque vulputate dolor eget mi porta vel porta nisl
			pretium. Vivamus non leo magna, quis imperdiet risus. Morbi tempor risus placerat tellus imperdiet
			fringilla.
		</p>

		<blockquote>
			<p> Why I am not one who was born in the possession of knowledge; I am & one who is fond of antiquity, and
				earnest in seeking it there.</p>
		</blockquote>

		<p><cite><a href="/">Confucius, The Confucian Analects</a></cite>, (551 BC - 479 BC)</p>

		<h4>Ordered lists</h4>

		<ol>
			<li>Unus</li>
			<li>Duo</li>
			<li>Tres</li>
			<li>Quattuor</li>
		</ol>

		<h4>Unordered lists</h4>
		<ul>
			<li>Lorem ipsum dolor sit amet</li>
			<li>Consectetur adipisicing elit</li>
			<li>Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua</li>
			<li>Ut enim ad minim veniam</li>
		</ul>
		<p>Lorem ipsum dolor sit amet,consectetur adipisicing elit, sed do eiusmod tempor incididunt
			ut labore et dolore magna aliqua.</p>

		<pre>body { font:0.8125em/1.618 sans-serif;
background-color:#fff;
color:#111;
}</pre>

		<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
			pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit
			anim id est laborum.</p>

		<h4>Tables</h4>
		<table summary="Jimi Hendrix albums">
			<caption>Jimi Hendrix - albums</caption>
			<thead>
				<tr>
					<th>Album</th>
					<th>Year</th>
					<th>Price</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>Are You Experienced </td>
					<td>1967</td>
					<td>$10.00</td>
				</tr>
				<tr>
					<td>Axis: Bold as Love</td>
					<td>1967</td>
					<td>$12.00</td>
				</tr>
				<tr>
					<td>Electric Ladyland</td>
					<td>1968</td>
					<td>$10.00</td>
				</tr>
				<tr>
					<td>Band of Gypsys</td>
					<td>1970</td>
					<td>$12.00</td>
				</tr>
			</tbody>
			<tfoot>
				<tr>
					<td>Album</td>
					<td>Year</td>
					<td>Price</td>
				</tr>
			</tfoot>
		</table>

		<h4>Infinity Grid</h4>

		<section>
			<section> 1 </section>
			<section> 2 </section>
			<section> 3 </section>
		</section>
		<section>
			<section>1</section>
			<section>2</section>
			<section>3</section>
			<section>4</section>
		</section>
		<section>
			<section> 1 </section>
			<section> 2 </section>
			<section> 3 </section>
			<section> 4 </section>
			<section> 5 </section>
		</section>

		<h4>Forms</h4>

		<form>
			<p>
				<label for="Name">Name:</label><br />
				<input id="Name" type="text" name="Name" />
			</p>
			<p>
				<label for="City">City:</label><br />
				<input id="City" type="text" name="City" />
			</p>
			<p>
				<label for="Email">Email:</label><br />
				<input id="Email" type="text" name="Email" />
			</p>
			<p>
				<label for="Message">Message:</label><br />
				<textarea id="Message" name="Message"></textarea>
			</p>
			<p>
				<label for="lorem">Lorem ipsum</label><br />
				<select id="lorem" name="Lorem ipsum">
					<option selected="selected" value="1">Lorem ipsum</option>
					<option value="2">dolor sit amet</option>
					<option value="3"> consectetuer adipiscing</option>
					<option value="4">vitae diam</option>
					<option value="5">Vestibulum ornare</option>
				</select>
			</p>
			<p>
				<label>Number:<br />
					<input type="radio" name="radioSet" value="uno" />Uno<br />
					<input type="radio" name="radioSet" value="due" />Due<br />
					<input type="radio" name="radioSet" value="tre" />Tre<br />
				</label>
			</p>
			<p>
				<button>Button </button>
				<button>Hello World</button>
				<input type="button" value="Input button" />
				<input type="submit" value="Input submit" />
				<input type="reset" value="Input reset" />

			</p>

		</form>

		<p><b><a href="https://github.com/vladocar/Basic.css">Download the project on Github</a></b></p>

		<hr>
	</main>
              
            
!

CSS

              
                /* Basic.css  */
main,
footer {
	margin: 0 auto;
	width: 60%;
	text-align: left;
	padding: 0 20px;
}

section > section {
	color: #fff;
	background-color: var(--c1);
	padding: 15px;
	margin: 10px 8px 10px 8px;
	text-align: center;
}

@media (max-width: 481px) {
	body {
		font-size: 18px;
	}
	main,
	footer {
		width: 98%;
	}
	section,
	article {
		flex: none;
		width: 100%;
		margin-left: 0;
	}
}
* {
	box-sizing: border-box;
}

:root {
	--sans: 1em/1.6 system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
		Oxygen, Ubuntu, Cantarell, Droid Sans, Helvetica Neue, Fira Sans, sans-serif;
	--mono: "Courier New", Courier, "Ubuntu Mono", "Liberation Mono", monospace;
	--c1: #0074d9;
	--c2: #eee;
	--c3: #fff;
	--c4: #000;
	--c5: #fff;
	--m1: 8px;
	--rc: 8px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--c2: #333;
		--c3: #1e1f20;
		--c4: #fff;
	}
}

html {
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
}

/* General settings */

body {
	margin: 0;
	font: var(--sans);
	font-weight: 400;
	font-style: normal;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	background-color: var(--c3);
	color: var(--c4);
}

img,
iframe {
	border: none;
	max-width: 100%;
}

a {
	color: var(--c1);
	text-decoration: none;
}

a:hover {
	color: var(--c1);
	text-decoration: underline;
}

pre {
	font: 1em/1.6 var(--mono);
	background: var(--c2);
	padding: 1em;
	overflow: auto;
}

code {
	font: 1em/1.6 var(--mono);
}

blockquote {
	border-left: 5px solid var(--c2);
	padding: 1em 1.5em;
	margin: 0;
}

hr {
	border: 0;
	border-bottom: 1px solid var(--c4);
}

/* Headlines */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0.6em 0;
	font-weight: normal;
}

h1 {
	font-size: 2.625em;
	line-height: 1.2;
}

h2 {
	font-size: 1.625em;
	line-height: 1.2;
}

h3 {
	font-size: 1.3125em;
	line-height: 1.24;
}

h4 {
	font-size: 1.1875em;
	line-height: 1.23;
}

h5,
h6 {
	font-size: 1em;
	font-weight: bold;
}

/* Table */

table {
	border-collapse: collapse;
	border-spacing: 0;
	margin: 1em 0;
}

th,
td {
	text-align: left;
	vertical-align: top;
	border: 1px solid;
	padding: 0.4em;
}

thead,
tfoot {
	background: var(--c2);
}

/* Rounded Corners*/

pre,
code,
input,
select,
textarea,
button,
img {
	border-radius: var(--rc);
}

/* Forms */

input,
select,
textarea {
	font-size: 1em;
	color: var(--c4);
	background: var(--c2);
	border: 0;
	padding: 0.6em;
}

button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
	-webkit-appearance: none;
	font-size: 1em;
	display: inline-block;
	color: var(--c5);
	background: var(--c1);
	border: 0;
	margin: 4px;
	padding: 0.6em;
	cursor: pointer;
	text-align: center;
}

button:hover,
button:focus,
input:hover,
textarea:hover,
select:hover {
	opacity: 0.8;
}

/* Infinite Grid */

section {
	display: flex;
	flex-flow: row wrap;
}

[style*="--c:"],
section > section,
aside,
article {
	flex: var(--c, 1);
	margin: var(--m1);
}

/* Cards */

article {
	background: var(--c2);
	border-radius: var(--rc);
	padding: 1em;
	box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.3);
}

[style*="--c:"]:first-child,
section > section:first-child,
article:first-child {
	margin-left: 0;
}

              
            
!

JS

              
                
              
            
!
999px

Console