cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation


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.

<div class="row viewResult"></div>
<div class="row viewResultTwo"></div>
<div class="row viewResultThree"></div>
              div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-family: Open Sans;
	color: #FFF;
	font-size: 2.6em;
	font-weight: 800;
	padding: 1em;
	text-shadow: 0px 4px 1px rgba(0,0,0,0.7);
.viewResult {
		background-color: #16a089;
.viewResultTwo {
		background-color: #16b089;
.viewResultThree {
		background-color: #16c089;
              // basic and verbose example
function reverse(str) {
	const splitString = str.split('');
	const reversedString = splitString.reverse();
	const joinArray = reversedString.join('');
	return joinArray;

// chained methods example
function reverseTwo(str) {
	return str.split('').reverse().join('');

// terse, using reduce method
function reverseThree(str) {
	return str.split('').reduce((rev, char) => char + rev, '');

let outPut = reverse('FC Porto');
let outPutTwo = reverseTwo('Newcastle United');
let outPutThree = reverseThree('Cape Town City FC');


// for displaying result on screen, you can ignore this.
let display = document.querySelector('.viewResult');
let displayTwo = document.querySelector('.viewResultTwo');
let displayThree = document.querySelector('.viewResultThree');
display.insertAdjacentHTML('afterbegin', JSON.stringify(outPut));
displayTwo.insertAdjacentHTML('afterbegin', JSON.stringify(outPutTwo));
displayThree.insertAdjacentHTML('afterbegin', JSON.stringify(outPutThree));
Loading ..................