News for hackers. Stuff that matters.
Re:The Shapes of CSS by jarek-foksa on Saturday May 26, 2012 @11:49AM (#4027536)
CSS was never meant to be used for drawing complex shapes. If you are using those hacks instead of proper SVG or canvas paths then you are doing it wrong.
Re:The Shapes of CSS by pacomerh on Sunday May 27, 2012 @03:34AM (#4029551)
Wow what you wrote is actually the oposite of the definition of what 'hacker' means, a few kittens died with that comment. What happened to being inventive?.
Re:The Shapes of CSS by Achshar on Sunday May 27, 2012 @01:24PM (#4030514)
That's exactly what someone must have said when people were using tables for site structure and someone like OP tried to correct them.

Hack is essentially to get things done. In no way does it mean write new specifications.

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.
Re:The Shapes of CSS by tylermenezes on Sunday May 27, 2012 @01:04AM (#4029305)
So what, the solution is draw it in canvas? What about the large number of people without support? I understand not using it for circles, but I've actually seen the triangle bit used quite often, and it makes sense.
Re:The Shapes of CSS by rrreese on Saturday May 26, 2012 @12:10PM (#4027593)
Can you explain why this is wrong? I appreciate this was never intended, but what is actually wrong here?
Re:The Shapes of CSS by jarek-foksa on Saturday May 26, 2012 @01:46PM (#4027849)
What makes it wrong is the fact that we already have means for describing complex graphics that are:

  - more readable
  - easier to maintain
  - easier to tweak
  - much more powerful
For similar reasons it's considered to be wrong to use HTML tables for page layout instead of CSS.