pentagon

Make a Pentagon in CSS

create-a-pentagon-with-css

Make a Pentagon in CSS. Set up a div in your html page and call it pentagon. [code]<div id="pentagon"></div>[/code] Next we will style the div in our CSS to create the pentagon. [code]<style> #pentagon { position: relative; width: 54px; border-width: 50px 18px 0; border-style: solid; border-color: pink transparent; } #pentagon:before { content: ""; position: absolute; Read More