Adding border to CSS triangle [duplicate]
One way to do it is the create an inner triangle which is smaller. Expand snippet
One way to do it is the create an inner triangle which is smaller. Expand snippet
A simple search turned this up: CSS Hexagon Tutorial Referenced from the site: Put a 104px × 60px div with a background colour between them and you get (the hexagon):
You can use a skewed pseudo element to make the slanted solid background of your element. This way, the text won’t be affected by the transform property. The transform origin property allows the pseudo element to be skewed from the right bottom corner and the overflowwing parts are hidden with overflow:hidden;. The pseudo element is … Read more
You can use some CSS like this: Expand snippet It is really cool to make all this shapes, Take a look to more nice shapes at: http://css-tricks.com/examples/ShapesOfCSS/ EDIT: This css is applied to a DIV element
You can use half triangle with the pseudo element. Jsfiddle
You can now include web fonts and even shrink down the file size with just the glyphs you need. https://github.com/fontello/fontello http://fontello.com/
You can do it something like this: Here is a jsfiddle. Improved version of answer for your purpose.
You could use a .before with a content with a unicode symbol for a circle (25CF). Expand snippet I suggest this as border-radius won’t work in IE8 and below (I recognize the fact that the suggestion is a bit mental).
Every guide I find has the line and fill the same colour. All I want is a circle with a red line and white fill. I have tried: But cannot get the red border?
You could use border-top-left-radius and border-top-right-radius properties to round the corners on the box according to the box’s height (and added borders). Then add a border to top/right/left sides of the box to achieve the effect. Here you go: WORKING DEMO. Alternatively, you could add box-sizing: border-box to the box in order to calculate the … Read more