News for hackers. Stuff that matters.
Re:The Shapes of CSS by bruceboughton on Friday August 12, 2011 @06:03AM (#2876649)
Can anyone explain the infinity sign? I can follow all of the other shapes.
Re:The Shapes of CSS by Stuk on Friday August 12, 2011 @06:12AM (#2876676)
It's two squares, each with three rounded corners and one point, rotated +/- 45 degrees to point at each other.
Re:The Shapes of CSS by kaitnieks on Friday August 12, 2011 @06:26AM (#2876707)
Re:The Shapes of CSS by Timothee on Friday August 12, 2011 @05:26PM (#2879332)
The :before and :after add one element of 60px x 60px on each side of the original element.

"border: 20px solid red;" and "border-radius: 50px 50px 0 50px;" makes these elements' border round on three sides and square on the bottom right. (of bottom left for the :after element)

"transform: rotate(-45deg);" and "transform: rotate(45deg);" turn the two elements so that their square corner meet in the middle, leaving one loop on each side.

Re:The Shapes of CSS by thatjoshguy on Saturday August 13, 2011 @09:52AM (#2880948)
The infinity sign caught me as the most interesting and apparently complex, but I love how simple the solution is