News for hackers. Stuff that matters.
Re:One div – The single element HTML/CSS icon database by orofino on Monday January 21, 2013 @06:15AM (#5090956)
Doesn't this seem like a maintainability nightmare? I can see a small change in rendering that causes number portions of a website to break in difficult to diagnose ways.

Clicking any of the HTML/CSS links under any of the icons just doesn't absolutely nothing for me btw. Running: Chrome 25.0.1364.29 beta

Re:One div – The single element HTML/CSS icon database by laumars on Monday January 21, 2013 @07:37AM (#5091178)
I agree about the maintainability issue. I really hate this kind of use of CSS as it strikes me as abuse of coding standards. It's as if a bunch of intellegent developers decide to throw all sanity out the window and compare cock sizes using CSS as their ruler.

Maybe I'm just old school, or maybe years writing native applications and fixing other peoples kludges has taught me disciplines that many of the younger web developers missed; but I'm a firm believer of the need to keep the different paradigms separate:

* HTML: mark up for the content

* CSS: design (though I tend to run 2 CSS files: 1 for layout and one for the motif/colour schemes)

* img (et al): embedded objects such as images (if people really want to use vector graphics, then there's SVG).

It's like how you wouldn't write a game and have the OpenGL wrappers in the same classes as computer AI; you'd modularise your project sanely. So why does such logic get thrown out the window when it comes to web development?

Re:One div – The single element HTML/CSS icon database by hayksaakian on Monday January 21, 2013 @06:33AM (#5090999)
Beta bug? I'm on crappy old chrome 18 (android) and it all works.

Scrolling is slow however.

Re:One div – The single element HTML/CSS icon database by l-p on Monday January 21, 2013 @09:12AM (#5091517)
It needs a "works for me" button for each glyph so you can crowd-source the compatibility list.
Re:One div – The single element HTML/CSS icon database by marcloney on Monday January 21, 2013 @06:27AM (#5090983)
Whilst using CSS pseudo elements to generate shapes is useful, I believe it's ill suited to iconography when the better solution is to use a custom web font. We've had a lot of success here recently, being able to create cross-platform, vector icons with minimal problems with maintainability.
Re:One div – The single element HTML/CSS icon database by bgarbiak on Monday January 21, 2013 @07:43AM (#5091199)
"Pure CSS" icons have smaller footprint, don't require additional request to the server, don't interfere with screen readers. Unless you need some more sophisticated shapes they are the way to go. IMHO.

In these other cases, I'd argue that SVG is better than fonts - but that's a totally different debate.

Re:One div – The single element HTML/CSS icon database by btown on Tuesday January 22, 2013 @12:23AM (#5095685)
You could always use a data-url SVG in the CSS file for the "best of both worlds"... and a compiler could make this a pretty painless process... but a single sprite sheet for your entire site is probably worth the extra request in most cases, since you could lazily load your icons and speed up your initial page render, rather than waiting for the CSS to fully load to display content.

But if you do want to do this, see http://jsfiddle.net/estelle/SJjJb/

Re:One div – The single element HTML/CSS icon database by josefresco on Monday January 21, 2013 @07:05AM (#5091080)
How are you loading the custom font?
Re:One div – The single element HTML/CSS icon database by marcloney on Monday January 21, 2013 @07:23AM (#5091132)
Chris Coyier has a great blog entry [1] on using and creating custom fonts but Font Squirrel [2] is my tool of choice for generating cross-browser font files and the markup to embed them.

[1] http://css-tricks.com/html-for-icon-font-usage/

[2] http://www.fontsquirrel.com/fontface/generator

Re:One div – The single element HTML/CSS icon database by glenjamin on Monday January 21, 2013 @08:51AM (#5091427)
I've used the IcoMoon app at http://icomoon.io/ a few times to good effect.

It lets you pick exactly which icons you want, from a variety of sources, and combine them into a single font.

Re:One div – The single element HTML/CSS icon database by elpool2 on Monday January 21, 2013 @01:38PM (#5092907)
Most of these icons look pretty bad if your browser isn't zoomed to 100% (In Chrome anyway).
Re:One div – The single element HTML/CSS icon database by Void_ on Monday January 21, 2013 @08:21AM (#5091331)
Why would anybody want to use this extremely hacky solution instead of webfonts?
Re:One div – The single element HTML/CSS icon database by ygra on Monday January 21, 2013 @10:44AM (#5091921)
Because they can, probably. Little other reason.

Although webfonts tend to render horribly on Chrome, so they're not without problems either.

Re:One div – The single element HTML/CSS icon database by lvh on Monday January 21, 2013 @05:14AM (#5090780)
Looks like it's down already. Couldn't get a Google Cache link.
Re:One div – The single element HTML/CSS icon database by robotrobot on Monday January 21, 2013 @05:43AM (#5090866)
Try hitting reload - I managed to get in after a few attempts
Re:One div – The single element HTML/CSS icon database by mmahemoff on Monday January 21, 2013 @06:03AM (#5090921)
Re:One div – The single element HTML/CSS icon database by sgarbi on Monday January 21, 2013 @08:16AM (#5091314)
Nice Idea!

Not to be picky but on on http://one-div.com/about/ there is a space missing. Search for "logos.All"

Re:One div – The single element HTML/CSS icon database by Aardwolf on Monday January 21, 2013 @08:47AM (#5091414)
One small amount of HTML - but a giant amount of CSS.
Re:One div – The single element HTML/CSS icon database by emp_ on Monday January 21, 2013 @10:26AM (#5091846)
Indeed. I think it might be a good alternative to fonts if it is a CDN hosted, widespread thing, CSS already cached and all.
Re:One div – The single element HTML/CSS icon database by repler on Monday January 21, 2013 @09:34PM (#5095196)
Why not do these with SVG? This is pretty fucking stupid actually.
Re:One div – The single element HTML/CSS icon database by ygra on Tuesday January 22, 2013 @06:29AM (#5096581)
Because it's not as cool because it's been around for a decade ;-)

Also it would be with fewer rendering problems. Bleeding-edge stuff is supposed to keep at least 70 % of the population out.

Re:One div – The single element HTML/CSS icon database by denysonique on Monday January 21, 2013 @01:37PM (#5092901)
Bug: Some icons break when browser-zooming.