News for hackers. Stuff that matters.
Re:The Shapes of CSS by rytis on Saturday May 26, 2012 @01:51PM (#4027860)
Totally with you on this. Really sad to see that a "triangle" is actually a "border"! Seriously, WTF?! Or is it just me, and everyone else is ok with that?
Re:The Shapes of CSS by liamondrop on Saturday May 26, 2012 @05:13PM (#4028382)
Just you. It's an exercise meant to push the boundaries and get people thinking creatively. Also, the triangle thing is a pretty common and useful hack.
Re:The Shapes of CSS by vibrunazo on Saturday May 26, 2012 @05:21PM (#4028406)
It's just a funny thing to giggle at. But I really hope no one will use this in production.
Re:The Shapes of CSS by alecperkins on Sunday May 27, 2012 @01:03PM (#4030467)
I'm currently working on a site that uses it heavily in production for visual enhancements and details. It's a great trick that works well, and doesn't require any additional markup if you use :before and :after pseudo-elements. Using CSS instead of images means it's easy to programmatically manipulate it, as well. eg A color picker system with a notch that varies with the color being picked. The new Google+ design uses the triangle trick with a twist, making an open triangle that shows what's underneath it, like your cover photo.
Re:The Shapes of CSS by malandrew on Saturday May 26, 2012 @06:45PM (#4028618)
It's used all the time in production to produce the arrow effect on tooltips and similar elements.