octagon

Make an Octagon in CSS

create-an-octagon-with-css

To make an octagon in CSS first we need to set up a div. We are going to give our div an id of octagon. [code]<div id="octagon"></div>[/code] Next we will insert the style for the octagon in our css stylesheet. [code]<style> #octagon { width: 100px; height: 100px; background: gray; position: relative; } #octagon:before { content: Read More