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

              
                <p>&nbsp;</p>
<style>
	body {
		//background-color: lightblue;
	}


	.sort-contents {
		padding: 1em;
		text-align: center;
		width: 1200px;
		//background-color: #9cb56f;
	}

	.sort-contents ul li {
		width: 150px;
		padding: 0 20 0 20;
	}

	.sort-contents ul li img {
		border-bottom: 4px solid currentColor;
	}

	input[name="sort"] {
		display: none;
	}

	.sort-contents label {
		display: inline-block;
		margin: 0px 0px 0px 0px;
		padding: 0px 20px 0px 20px;
		font-size: 1.2rem;
		font-family: 'Open Sans', sans-serif;
		font-weight: 300;
		cursor: pointer;
		background-color: #58a1c4;
		color: #fff;
	}

	.sort-contents label:hover,
	input[name="sort"]:checked+label {
		color: #000;
		border-bottom: 4px solid currentColor;
	}

	.sort-contents input[name="sort"]:checked+label {
		cursor: default;
	}

	.sort-contents label[for="sort-2014"]:hover,
	#sort-2014:checked+label {
		color: var(--color-2014);
	}

	.sort-contents label[for="sort-2015"]:hover,
	#sort-2015:checked+label {
		color: var(--color-2015);
	}

	.sort-contents label[for="sort-2019"]:hover,
	#sort-2019:checked+label {
		color: var(--color-2019);
	}

	.sort-contents label[for="sort-2020"]:hover,
	#sort-2020:checked+label {
		color: var(--color-2020);
	}

	.sort-contents label[for="sort-2018"]:hover,
	#sort-2018:checked+label {
		color: var(--color-2018);
	}

	.sort-contents label[for="sort-2017"]:hover,
	#sort-2017:checked+label {
		color: var(--color-2017);
	}

	.sort-contents label[for="sort-2016"]:hover,
	#sort-2016:checked+label {
		color: var(--color-2016);
	}

	.sort-contents ul {
		display: flex;
		flex-wrap: wrap;
		margin: 0 -20px;
		padding: 1em 0 0;
		list-style: none;
		text-align: center;
	}

	.sort-contents li {
		width: calc(30% - 40px);
		min-height: 150px;
		margin: 40px 20px 0;
	}

	@media (max-width: 960px) and (min-width: 601px) {
		.sort-contents li {
			width: calc(40% - 10px);
			min-height: 150px;
			margin: 40px 20px 0;
		}
	}

	@media (max-width: 600px) {
		.sort-contents li {
			width: 100%;
		}

		/* Show 2 logos per row on medium devices (tablets, phones in landscape) */
	}

	[data-color="2014"] {
		//background: var(--color-2014);
		//  opacity:0.4;
	}

	[data-color="2015"] {
		background: var(--color-2015);
	}

	[data-color="2017"] {
		background: var(--color-2017);
	}

	[data-color="2016"] {
		background: var(--color-2016);
	}

	[data-color="2019"] {
		background: var(--color-2019);
	}

	[data-color="2018"] {
		background: var(--color-2018);
	}

	[data-color="2020"] {
		background: var(--color-2020);
	}

	.sort-contents #sort-2015:checked~ul [data-color*="2015"],
	.sort-contents #sort-2017:checked~ul [data-color*="2017"],
	.sort-contents #sort-2016:checked~ul [data-color*="2016"],
	.sort-contents #sort-2020:checked~ul [data-color*="2020"],
	.sort-contents #sort-2019:checked~ul [data-color*="2019"],
	.sort-contents #sort-2018:checked~ul [data-color*="2018"],
	.sort-contents #sort-2014:checked~ul [data-color*="2014"] {
		order: -1;
	}

	/* 2020 */
	.sort-contents #sort-2020:checked~ul [data-color*="2019"] {
		display: none;
	}

	.sort-contents #sort-2020:checked~ul [data-color*="2016"] {
		display: none;
	}

	.sort-contents #sort-2020:checked~ul [data-color*="2014"] {
		display: none;
	}

	.sort-contents #sort-2020:checked~ul [data-color*="2018"] {
		display: none;
	}

	.sort-contents #sort-2020:checked~ul [data-color*="2017"] {
		display: none;
	}

	.sort-contents #sort-2020:checked~ul [data-color*="2015"] {
		display: none;
	}

	/* END 2020 */
	/* 2019  */
	.sort-contents #sort-2019:checked~ul [data-color*="2020"] {
		display: none;
	}

	.sort-contents #sort-2019:checked~ul [data-color*="2018"] {
		display: none;
	}

	.sort-contents #sort-2019:checked~ul [data-color*="2017"] {
		display: none;
	}

	.sort-contents #sort-2019:checked~ul [data-color*="2016"] {
		display: none;
	}

	.sort-contents #sort-2019:checked~ul [data-color*="2015"] {
		display: none;
	}

	.sort-contents #sort-2019:checked~ul [data-color*="2014"] {
		display: none;
	}

	/* END 2019 */
	/* 2018 */
	.sort-contents #sort-2018:checked~ul [data-color*="2020"] {
		display: none;
	}

	.sort-contents #sort-2018:checked~ul [data-color*="2019"] {
		display: none;
	}

	.sort-contents #sort-2018:checked~ul [data-color*="2017"] {
		display: none;
	}

	.sort-contents #sort-2018:checked~ul [data-color*="2016"] {
		display: none;
	}

	.sort-contents #sort-2018:checked~ul [data-color*="2015"] {
		display: none;
	}

	.sort-contents #sort-2018:checked~ul [data-color*="2014"] {
		display: none;
	}

	/* END 2018 */
	/* 2017 */
	.sort-contents #sort-2017:checked~ul [data-color*="2020"] {
		display: none;
	}

	.sort-contents #sort-2017:checked~ul [data-color*="2019"] {
		display: none;
	}

	.sort-contents #sort-2017:checked~ul [data-color*="2018"] {
		display: none;
	}

	.sort-contents #sort-2017:checked~ul [data-color*="2016"] {
		display: none;
	}

	.sort-contents #sort-2017:checked~ul [data-color*="2015"] {
		display: none;
	}

	.sort-contents #sort-2017:checked~ul [data-color*="2014"] {
		display: none;
	}

	/* END 2017 */
	/* 2016 */
	.sort-contents #sort-2016:checked~ul [data-color*="2020"] {
		display: none;
	}

	.sort-contents #sort-2016:checked~ul [data-color*="2019"] {
		display: none;
	}

	.sort-contents #sort-2016:checked~ul [data-color*="2018"] {
		display: none;
	}

	.sort-contents #sort-2016:checked~ul [data-color*="2017"] {
		display: none;
	}

	.sort-contents #sort-2016:checked~ul [data-color*="2015"] {
		display: none;
	}

	.sort-contents #sort-2016:checked~ul [data-color*="2014"] {
		display: none;
	}

	/* END 2016 */
	/* 2015 */
	.sort-contents #sort-2015:checked~ul [data-color*="2020"] {
		display: none;
	}

	.sort-contents #sort-2015:checked~ul [data-color*="2019"] {
		display: none;
	}

	.sort-contents #sort-2015:checked~ul [data-color*="2018"] {
		display: none;
	}

	.sort-contents #sort-2015:checked~ul [data-color*="2017"] {
		display: none;
	}

	.sort-contents #sort-2015:checked~ul [data-color*="2016"] {
		display: none;
	}

	.sort-contents #sort-2015:checked~ul [data-color*="2014"] {
		display: none;
	}

	/* END 2015 */
	/* 2014 */
	.sort-contents #sort-2014:checked~ul [data-color*="2020"] {
		display: none;
	}

	.sort-contents #sort-2014:checked~ul [data-color*="2019"] {
		display: none;
	}

	.sort-contents #sort-2014:checked~ul [data-color*="2018"] {
		display: none;
	}

	.sort-contents #sort-2014:checked~ul [data-color*="2017"] {
		display: none;
	}

	.sort-contents #sort-2014:checked~ul [data-color*="2016"] {
		display: none;
	}

	.sort-contents #sort-2014:checked~ul [data-color*="2015"] {
		display: none;
	}

	/* END 2014 */
</style>
<div class="sort-contents">
	<input id="sort-reset" type="radio" name="sort" checked="checked" />
	<label for="sort-reset">1998 - Today</label>
	<input id="sort-2020" type="radio" name="sort" />
	<label for="sort-2020">2020</label>
	<input id="sort-2019" type="radio" name="sort" />
	<label for="sort-2019">2019</label>
	<input id="sort-2018" type="radio" name="sort" />
	<label for="sort-2018">2018</label>
	<input id="sort-2017" type="radio" name="sort" />
	<label for="sort-2017">2017</label>
	<input id="sort-2016" type="radio" name="sort" />
	<label for="sort-2016">2016</label>
	<input id="sort-2015" type="radio" name="sort" />
	<label for="sort-2015">2015</label>
	<input id="sort-2014" type="radio" name="sort" />
	<label for="sort-2014">2014</label>
	<ul>
		<!--- Persons A --->
		<li data-color="2014"><img id="color-grayscale" src="https://syndeoinstitute.org/wp-content/uploads/2022/12/wonya-lucas.jpg" alt="Christiane Amanpour" title="Christiane Amanpour" width="120%" />
			<p style="line-height: 130%;"><strong>Christiane Amanpour</strong><br />Chief International Correspondent and Anchor<br /><strong>CNN</strong></p>
		</li>
		<!--- Persons B --->
		<li data-color="2020" id="2020"><img id="color-grayscale" src="https://syndeoinstitute.org/wp-content/uploads/2022/12/wonya-lucas.jpg" alt="Bridget Baker, CEO, Baker Media Inc." title="Bridget Baker, CEO, Baker Media Inc." width="120%" />
			<p style="line-height: 130%;"><strong>Bridget Baker</strong><br />CEO<br /><strong>Baker Media Inc.</strong></p>
		</li>
		<!--- Person --->
		<li data-color="2015"><img id="color-grayscale" src="https://syndeoinstitute.org/wp-content/uploads/2022/12/wonya-lucas.jpg" alt="Bridget Baker, CEO, Baker Media Inc." title="Bridget Baker, CEO, Baker Media Inc." width="120%" />
			<p style="line-height: 130%;"><strong>Chris Berman</strong><br />Sportscaster<br /><strong>ESPN</strong></p>
		</li>
		<!--- Person --->
		<li data-color="2014"> <img id="color-grayscale" src="https://syndeoinstitute.org/wp-content/uploads/2022/12/wonya-lucas.jpg" alt="Bridget Baker, CEO, Baker Media Inc." title="Bridget Baker, CEO, Baker Media Inc." width="120%" />
			<p style="line-height: 130%;"><strong>Alex Best</strong><br />Executive Vice President, Engineering (Retired),<br /><strong>Cox Communications, Inc.</strong></p>
		</li>
		<!--- Person --->
		<li data-color="2020" id="2020"><img id="color-grayscale" src="https://syndeoinstitute.org/wp-content/uploads/2022/12/wonya-lucas.jpg" alt="Bridget Baker, CEO, Baker Media Inc." title="Bridget Baker, CEO, Baker Media Inc." width="120%" />
			<p style="line-height: 130%;"><strong>James Blackley</strong><br />Former EVP, IT and Engineering<br /><strong>Charter Communications</strong></p>
		</li>
		<!--- Person --->
		<li data-color="2018" id="2020"><img id="color-grayscale" src="https://syndeoinstitute.org/wp-content/uploads/2022/12/wonya-lucas.jpg" alt="Bridget Baker, CEO, Baker Media Inc." title="Bridget Baker, CEO, Baker Media Inc." width="120%" />
			<p style="line-height: 130%;"><strong>Breaking Bad</strong><br />A television drama series<br />Vince Gilligan, creator<br /><strong>AMC</strong></p>
		</li>
		<!--- Persons D --->
		<li data-color="2014"><img id="color-grayscale" src="https://syndeoinstitute.org/wp-content/uploads/2022/12/wonya-lucas.jpg" alt="Bridget Baker, CEO, Baker Media Inc." title="Bridget Baker, CEO, Baker Media Inc." width="120%" /><strong>Fred Dressler</strong><br />Senior Design Director, UX Research<br /><strong>2014 Communications</strong></p>
		</li>
		<!--- Persons E --->
		<!--- Persons H --->
		<!--- Person --->
		<!--- Persons K --->
		<li data-color="2014"><img id="color-grayscale" src="https://syndeoinstitute.org/wp-content/uploads/2022/12/wonya-lucas.jpg" alt="Bridget Baker, CEO, Baker Media Inc." title="Bridget Baker, CEO, Baker Media Inc." width="120%" />
			<p style="line-height: 130%;"><strong>Jerald L. Kent</strong><br />Director of People<br /><strong>2018</strong></p>
		</li>
		<!--- Person --->
		<li data-color="2019"><img id="color-grayscale" src="https://syndeoinstitute.org/wp-content/uploads/2022/12/wonya-lucas.jpg" alt="Bridget Baker, CEO, Baker Media Inc." title="Bridget Baker, CEO, Baker Media Inc." width="120%" />
			<p style="line-height: 130%;"><strong>Phil Kent</strong><br />Director of People<br /><strong>2018</strong></p>
		</li>
		<!--- Person --->
		<li data-color="2020"><img id="color-grayscale" src="https://syndeoinstitute.org/wp-content/uploads/2022/12/wonya-lucas.jpg" alt="Bridget Baker, CEO, Baker Media Inc." title="Bridget Baker, CEO, Baker Media Inc." width="120%" />
			<p style="line-height: 130%;"><strong>Alfred C. Liggins, III</strong><br />Sr. Program Manager<br /><strong>2014</strong></p>
		</li>
		<!--- Persons M --->
		<li data-color="2020"><img id="color-grayscale" src="https://syndeoinstitute.org/wp-content/uploads/2022/12/wonya-lucas.jpg" alt="Bridget Baker, CEO, Baker Media Inc." title="Bridget Baker, CEO, Baker Media Inc." width="120%" />
			<p style="line-height: 130%;"><strong>Jeffrey A. Marcus</strong><br />Sr. Director, Network Products and Services Engineering<br /><strong>2014! Internet, Cable, Phone</strong></p>
		</li>
		<!--- Person --->
		<li data-color="2019"><img id="color-grayscale" src="https://syndeoinstitute.org/wp-content/uploads/2022/12/wonya-lucas.jpg" alt="Bridget Baker, CEO, Baker Media Inc." title="Bridget Baker, CEO, Baker Media Inc." width="120%" />
			<p style="line-height: 130%;"><strong>Kyle McSlarrow</strong><br />Sr. Director, Network Products and Services Engineering<br /><strong>2014! Internet, Cable, Phone</strong></p>
		</li>
		<!--- Person --->
		<li data-color="2019"><img id="color-grayscale" src="https://syndeoinstitute.org/wp-content/uploads/2022/12/wonya-lucas.jpg" alt="Bridget Baker, CEO, Baker Media Inc." title="Title" width="120%" />
			<p style="line-height: 130%;"><strong>Steve Miron</strong><br />Sr. Director, Network Products and Services Engineering<br /><strong>2014! Internet, Cable, Phone</strong></p>
		</li>
		<!--- Person --->
		<li data-color="2019"><img id="color-grayscale" src="https://syndeoinstitute.org/wp-content/uploads/2022/12/wonya-lucas.jpg" alt="Bridget Baker, CEO, Baker Media Inc." title="Bridget Baker, CEO, Baker Media Inc." width="120%" />
			<p style="line-height: 130%;"><strong>MTV</strong></p>
		</li>
		<!--- Persons P --->
		<!--- Persons S --->
		<li data-color="2017"> <img id="color-grayscale" src="https://syndeoinstitute.org/wp-content/uploads/2022/12/wonya-lucas.jpg" alt="Bridget Baker, CEO, Baker Media Inc." title="Bridget Baker, CEO, Baker Media Inc." width="120%" />
			<p style="line-height: 130%;"><strong>The Sopranos</strong></p>
		</li>
		<!--- Person --->
		<li data-color="2016"><img id="color-grayscale" src="https://syndeoinstitute.org/wp-content/uploads/2022/12/wonya-lucas.jpg" alt="Bridget Baker, CEO, Baker Media Inc." title="Bridget Baker, CEO, Baker Media Inc." width="120%" />
			<p><strong>Robert Stanzione</strong></p>
		</li>
		<!--- Persons T --->
		<!--- Persons  W --->
		<!--- Persons Y --->
		<!--- Persons Z --->
		<li data-color="2020"><img id="color-grayscale" src="https://syndeoinstitute.org/wp-content/uploads/2022/12/wonya-lucas.jpg" alt="Bridget Baker, CEO, Baker Media Inc." title="Bridget Baker, CEO, Baker Media Inc." width="120%" />
			<p style="line-height: 130%;"><strong>Jeff Zucker</strong><br />Manager of Learning Technology<br /><strong>2014</strong></p>
		</li>
	</ul>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console