edit - tried them in IE6/7, they don't degrade that gracefully. They exist and work fine as buttons, but visually it's hard to tell that they are. If you use this I'd recommend adding a :hover on the span's background color as well just so a user knows to click the thing.
The main difference is that these buttons require no images, while the Zurb ones still require an image. The lack of images makes the buttons highly scalable.
Also, the markup Posterous uses is more verbose than it needs to be. We figured out a way use plain 'ol <button/> or <a/> tags and style them as buttons. Maybe I'll blog about that when we roll this stuff out.
I love how the author includes a line within the article that pretty much sums up the insanity of using pure CSS to create buttons ... "a small truckload of CSS" A designer could replace that truckload of CSS with 1 image and 1 line of code.
We gotta stop sometimes and think .. what are we trying to achieve exactly? Strikes me almost as an extreme diet that excludes 100% of fat from your intake just for the sake of having no fat irregardless if it's healthy or causes you to lose weight.
But in the "cool project" nerdy line of thinking .. it's pretty neat.
Well for one thing the buttons are scalable, unlike images. Also I imagine that the truckload of CSS still comes in way smaller than the required image(s).
If someone's willing to take the time to figure it out, it is not wasted. If indeed it is more efficient to draw buttons this way than to use an image, it makes sense to do this.
Three images, actually (normal, hover and active). Six if you have buttons in two different colors. Twelve if you need the buttons in two different sizes.
You need a truckload of CSS to define how a button looks but you only need to do it once. Creating arbitrarily colored and sized buttons is as easy as adding one or two lines of CSS. And at some point in the future we will actually be able to drop the prefixes and the CSS will become quite elegant and compact.
False. Webkit extensions, mozilla extensions, and internet explorer extensions are NOT pure CSS3. They are ugly browser hacks. This is hard-coded to only work on the Big 3 and will never work on Opera, thanks for not supporting browser freedom.
These are vendor-prefixed implementations of features which are present in the current drafts of future editions of the relevant standards. As such, they are neither an "ugly browser hack" nor an attack on "freedom"; in fact, this is the way it's supposed to happen. Once the standards go final and the browsers get compliant implementations, the vendor prefixes will go away.
So... how about you get that big chip off your shoulder and let people get on with their work?
[+] [-] coderdude|15 years ago|reply
[+] [-] jjcm|15 years ago|reply
edit - tried them in IE6/7, they don't degrade that gracefully. They exist and work fine as buttons, but visually it's hard to tell that they are. If you use this I'd recommend adding a :hover on the span's background color as well just so a user knows to click the thing.
[+] [-] photon_off|15 years ago|reply
[+] [-] Griever|15 years ago|reply
http://www.zurb.com/article/266/super-awesome-buttons-with-c...
I use them on nearly all of my projects.
[+] [-] bemaniac|15 years ago|reply
[+] [-] aaroneous|15 years ago|reply
[+] [-] ronnier|15 years ago|reply
[1] http://mwhenry.com/blog/2009/11/shiny-css-only-iphone-button...
[+] [-] bradgessler|15 years ago|reply
Also, the markup Posterous uses is more verbose than it needs to be. We figured out a way use plain 'ol <button/> or <a/> tags and style them as buttons. Maybe I'll blog about that when we roll this stuff out.
Visually, those buttons look good.
[+] [-] Eugene3v|15 years ago|reply
[+] [-] seanalltogether|15 years ago|reply
[+] [-] jws|15 years ago|reply
[+] [-] DenisM|15 years ago|reply
http://news.ycombinator.com/item?id=1255023
[+] [-] amadiver|15 years ago|reply
[+] [-] josefresco|15 years ago|reply
We gotta stop sometimes and think .. what are we trying to achieve exactly? Strikes me almost as an extreme diet that excludes 100% of fat from your intake just for the sake of having no fat irregardless if it's healthy or causes you to lose weight.
But in the "cool project" nerdy line of thinking .. it's pretty neat.
[+] [-] amackera|15 years ago|reply
If someone's willing to take the time to figure it out, it is not wasted. If indeed it is more efficient to draw buttons this way than to use an image, it makes sense to do this.
[+] [-] ugh|15 years ago|reply
You need a truckload of CSS to define how a button looks but you only need to do it once. Creating arbitrarily colored and sized buttons is as easy as adding one or two lines of CSS. And at some point in the future we will actually be able to drop the prefixes and the CSS will become quite elegant and compact.
[+] [-] pornel|15 years ago|reply
Here's unminified CSS: http://pastie.org/1097542
[+] [-] wmeredith|15 years ago|reply
[+] [-] metamemetics|15 years ago|reply
False. Webkit extensions, mozilla extensions, and internet explorer extensions are NOT pure CSS3. They are ugly browser hacks. This is hard-coded to only work on the Big 3 and will never work on Opera, thanks for not supporting browser freedom.
[+] [-] ubernostrum|15 years ago|reply
So... how about you get that big chip off your shoulder and let people get on with their work?