I've been trying to round the corners of hexagon shapes for a while however I've found that none of my methods work. Do you guys have any suggestions on how it can be done?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
- Adding a timeout to a render function in ReactJS
http://jsfiddle.net/9BTTQ/4/
HTML
CSS
Notes:
This would probably be better done with SVG or a canvas unless it's an isolated need. Creating a bunch of elements to form a shape is both non-semantic and tedious.
IE 7/8 won't work at all due to
transform
,border-radius
, andnth-child
.You'll notice the simple mathematical relationships between the size of the border radius, the width, and the height.
This site shows many other interesting shapes that can be generated.