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.

+ add another resource


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


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.


                <h2>Weekly Coding Challenge #18 - Social Media Buttons</h2>

<ul class="social-media-container">
	<li class="social-media blog">
		<i class="fas fa-laptop-code"></i>
		<a href="" target="_blank">Check out my blog</a>
	<li class="social-media twitter">
		<i class="fab fa-twitter"></i>
		<a href="" target="_blank">Follow me on Twitter</a>
	<li class="social-media linkedin">
		<i class="fab fa-linkedin-in"></i>
		<a href="" target="_blank">Connect on Linkedin</a>
	<li class="social-media facebook">
		<i class="fab fa-facebook-f"></i>
		<a href="" target="_blank">Like my Facebook page</a>
	<li class="social-media github">
		<i class="fab fa-github"></i>
		<a href="" target="_blank">See projects on Github</a>

		Created with <i class="fa fa-heart"></i> by
		<a target="_blank" href="">Florin Pop</a>
		- Read how I created this and how you can join the challenge
		<a target="_blank" href="">here</a>


                @import url('');

* {
	box-sizing: border-box;

body {
	background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;

	min-height: 100vh;
	font-family: 'Lato', sans-serif;
	margin: 0;

h2 {
	text-align: center;

.social-media-container {
	position: fixed;
	top: 50%;
	left: calc(100% - 60px);
	list-style-type: none;
	padding: 0;
	transform: translateY(-50%);
	min-width: 250px;

.social-media {
	align-items: center;
	display: flex;
	transition: transform .3s ease-in-out;

.social-media:hover {
	transform: translateX(calc(-100% + 60px));
} {
	background-color: #e17b77;

.social-media.facebook {
	background-color: #3b5998;

.social-media.twitter {
	background-color: #00aced;

.social-media.github {
	background-color: #333;

.social-media.linkedin {
	background-color: #007bb6;

.social-media i {
	color: #fff;
	font-size: 20px;
	padding: 15px;
	text-align: center;
	width: 60px;

.social-media a {
	color: #fff;
	padding: 0 10px;

footer {
    background-color: #222;
    color: #fff;
    font-size: 14px;
    bottom: 0;
    position: fixed;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 999;

footer p {
    margin: 10px 0;

footer i {
    color: red;

footer a {
    color: #3c97bf;
    text-decoration: none;