Polygon Logo in CSS

Developer
Size
3,412 Kb
Views
18,216

How do I make an polygon logo in css?

I thought it would be cool to rebuild Polygon's logo as a CSS-only version.. What is a polygon logo in css? How do you make a polygon logo in css? This script and codes were developed by Kai Brueckers on 15 November 2022, Tuesday.

Polygon Logo in CSS Previews

Polygon Logo in CSS - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Polygon Logo in CSS</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @import url(https://fonts.googleapis.com/css?family=Open+Sans:400);
body { padding: 50px; background: #e7e7e2;
}
.polygon { background: #fff; width: 76px; height: 112px; padding: 30px; margin: 0 auto;
}
.polygon .flap { float: left; width: 38px; height: 38px;
}
.polygon .flap-1 { width: 0; height: 0; border-style: solid; border-width: 0 0 38px 38px; border-color: transparent transparent #210008 transparent;
}
.polygon .flap-2 { width: 0; height: 0; border-style: solid; border-width: 38px 0 0 38px; border-color: transparent transparent transparent #520019;
}
.polygon .flap-3 { width: 0; height: 0; border-style: solid; border-width: 0 38px 38px 0; border-color: transparent #a5003a transparent transparent;
}
.polygon .flap-4 { width: 0; height: 0; border-style: solid; border-width: 38px 38px 0 0; border-color: #7b0029 transparent transparent transparent;
}
.polygon .flap-5 { width: 0; height: 0; border-style: solid; border-width: 38px 0 0 38px; border-color: transparent transparent transparent #d6004a; margin-top: -38px;
}
.polygon .flap-6 { width: 0; height: 0; border-style: solid; border-width: 0 38px 38px 0; border-color: transparent #ff0052 transparent transparent;
}
.by { font-family: 'Open Sans', sans-serif; font-size: 12px; padding-top: 30px; color: #666666; text-align: center;
}
.by a { text-decoration: none; color: #666666; border-bottom: 1px solid #999999;
}
.by a:hover { color: #1a1a1a; border-bottom: 1px solid #4d4d4d;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class='polygon'> <div class='flap flap-1'></div> <div class='flap flap-2'></div> <div class='flap flap-3'></div> <div class='flap flap-4'></div> <div class='flap flap-5'></div> <div class='flap flap-6'></div>
</div>
<div class='by'> Logo by <a href='https://twitter.com/Polygon' target='_blank'>@Polygon</a> — Rebuilt in CSS by <a href='https://twitter.com/kaibrueckers' target='_blank'>@kaibrueckers</a>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>

Polygon Logo in CSS - Script Codes CSS Codes

@import url(https://fonts.googleapis.com/css?family=Open+Sans:400);
body { padding: 50px; background: #e7e7e2;
}
.polygon { background: #fff; width: 76px; height: 112px; padding: 30px; margin: 0 auto;
}
.polygon .flap { float: left; width: 38px; height: 38px;
}
.polygon .flap-1 { width: 0; height: 0; border-style: solid; border-width: 0 0 38px 38px; border-color: transparent transparent #210008 transparent;
}
.polygon .flap-2 { width: 0; height: 0; border-style: solid; border-width: 38px 0 0 38px; border-color: transparent transparent transparent #520019;
}
.polygon .flap-3 { width: 0; height: 0; border-style: solid; border-width: 0 38px 38px 0; border-color: transparent #a5003a transparent transparent;
}
.polygon .flap-4 { width: 0; height: 0; border-style: solid; border-width: 38px 38px 0 0; border-color: #7b0029 transparent transparent transparent;
}
.polygon .flap-5 { width: 0; height: 0; border-style: solid; border-width: 38px 0 0 38px; border-color: transparent transparent transparent #d6004a; margin-top: -38px;
}
.polygon .flap-6 { width: 0; height: 0; border-style: solid; border-width: 0 38px 38px 0; border-color: transparent #ff0052 transparent transparent;
}
.by { font-family: 'Open Sans', sans-serif; font-size: 12px; padding-top: 30px; color: #666666; text-align: center;
}
.by a { text-decoration: none; color: #666666; border-bottom: 1px solid #999999;
}
.by a:hover { color: #1a1a1a; border-bottom: 1px solid #4d4d4d;
}
Polygon Logo in CSS - Script Codes
Polygon Logo in CSS - Script Codes
Home Page Home
Developer Kai Brueckers
Username kai
Uploaded November 15, 2022
Rating 4
Size 3,412 Kb
Views 18,216
Do you need developer help for Polygon Logo in CSS?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Kai Brueckers (kai) Script Codes
Create amazing love letters with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!