Smashing Magazine - we smash you with the information that will make your life easier. really.
Janko Jovanovic is a software engineer, blogger and speaker focused on UI engineering. In his free time, he writes about UI engineering on his blog JankoAtWarpSpeed and tweets regularly on Twitter.
- 52 Comments
- 1
- 2
January 14th, 2010 7:49 amvery nice post! thx.
- 2
- 3
November 18th, 2009 7:31 ami tend to use Submit with simply
-webkit-border-radius: 4px;
background: #06F;
color: #fff;and then various active:hover styles
- 4
November 18th, 2009 8:05 amThis is a great article, but you should also have:
-khtml-border-radius: XXpx;
border-radius: XXpx;As additional properties as the -khtml is for Konqueror (just as “-webkit” is for Safari and “-moz” is for Firefox) and the plain border-radius is the eventual CSS3 property, so once they are ‘approved’ you won’t have to redo your css.
- 5
November 18th, 2009 8:07 amI dont meant to sound rude but am I the only one who thinks that there are far too many of these generic articles going onto the Smashing Mag site at the minute?
What happened to the once a week/every two weeks where you would get something that isn’t just the same reused examples?
I much prefer quality over quantity and my thoughts are shared by each of my colleagues.
This is in no way disrespecting the authors – more the the factory line process that seems to be in place at the minute.
Danny
- 6
November 18th, 2009 8:13 amI absolutely do NOT agree to “[..] standard buttons can easily be missed by users because they often look similar to elements in their operating system.”
That might be true for special advertising buttons (”Sign here”, “Buy now”) but not in general. Indeed it’s the other way round: Buttons get missed because the user doesn’t recognize them as buttons because they are (poorly) styled. If the user doesn’t recognize a system button, all OS developers would have done something really wrong. In fact the user does recognize a none-styled button much faster then a styled one, because he’s used to it by it’s daily used operating system.
- 8
November 18th, 2009 8:16 amNice Article Jovanovic. Keep up :)
- 9
November 18th, 2009 8:57 amwell written and well researched… a really nice reference
thank you and two thumbs up :) - 10
November 18th, 2009 9:07 amGreat article. I am a big fan of the sliding doors technique with a single image. It is clean, effective, and works in all browsers – what more do you want.
- 11
November 18th, 2009 9:38 amGreat post. very useful, and am saving it in my CSS “Bible”. More please!
- 12
November 18th, 2009 9:44 amI love CSS buttons, I’m using the Zurb technique on my latest project it was so easy to implement and degradable from CSS3 too! They are super awesome!
http://www.zurb.com/article/266/super-awesome-buttons-with-css3-and-rgba
- 13
November 18th, 2009 9:46 amGreat Post!!! Thanks for all the info and resources!
- 14
November 18th, 2009 9:58 amGreat article! Loved the emphasis on usability at the end. I can’t wait for the day that CSS3 buttons can be used in every day situations. So tired of cutting images just to have rounded corners and drop shadows…
- 15
November 18th, 2009 10:06 amExcellent article. Bookmarked! Keep up the good work.
- 16
November 18th, 2009 10:07 amYou forgot the -webkit-gradient css3 stuff (-moz-gradient in ff 3.6) which deprecates the need for images at all. No images => faster development and faster site.
- 17
November 18th, 2009 10:48 amGreat post!
The only thing I hate is the increase of these browser-specfic css tags. Yes they are great, but I don’t want to have to start adding all these unecessary css3 repeat codes just for it to appear in a single broswer such as Firefox and Safari. There needs to be global tags just like in CSS and CSS2 that works in all browers. It was already bad enough it’s IE6-specific then everyone else.. but now it seems it’s everyone-specfic. Boo.
- 18
November 18th, 2009 10:54 amI second your opinion
- 19
November 18th, 2009 6:48 pmI am thirding the shit out of your opinion
- 18
- 20
November 18th, 2009 10:53 am90% of this article will be totally outdated in a few months (or it’s already outdated)
- 21
November 18th, 2009 12:10 pmGreat post. Lengthy, but very useful. Tutorials linked at the end are top-notch too!
- 22
November 18th, 2009 1:05 pmI’m with Danny on this one. Why does it seems like all the articles over the last few weeks are so generic? Personally, I got absolutely nothing out of this article, and while there is plenty of content, none of it seems to be outside of your average designer/developer’s preexisting knowledge-base.
- 23
November 18th, 2009 1:11 pmSnubbed again! I’ve been trying to get the word out about my totally practical CSS3 progressive enhancement buttons. You can see an example and get the full “framework” at http://brad.hawidu.com/test.html
They use CSS3 rounded corners, gradient overlays with transparency (so if you want to have multiple states you can just change the background color and perhaps the border rather than the bloat of image sprites or other non-CSS solutions). The framework also has pillboxes for all types of UI elements plus a full suite of internationalization/rtl built in. Can somebody please look at this and realize it’s cool?
Thanks!
- 24
November 18th, 2009 2:47 pmSliding door with 2 images is a waste. It’s enough having only ONE image with a big width. It’s not necessary holding the right end in a separate image.
- 25
November 18th, 2009 3:01 pmDude, are you trying to teach something or you want to post numerous links to other websites.
Next time, pick one and stick to it.
- 26
November 18th, 2009 3:02 pmAnd just so you know, the “Post a comment” button here on smashing magazine has no hover or active state. Just a single state.
bad! bad!! bad!!!
- 27
November 18th, 2009 6:26 pmthanks for this detailed article. many things were known to me but some were really new.. like in start code. you have mentioned button tag. I was totally unknown to this… i always used input tag for this !!
- 28
November 18th, 2009 7:41 pmMany thanks. I’ve used the sprite and the super awesome button of Zurb on some projects. From what I see, this will be a great time saver for web designers/developers.
- 29
November 18th, 2009 8:45 pmGreat post ……
- 30
November 18th, 2009 9:07 pmNice article to set the mood for the day :)
- 31
November 18th, 2009 10:15 pmnice… Thanks! =.)
- 32
November 18th, 2009 10:32 pmExcellent post and nicely put together by Janko. Thanks for these resources.
- 33
November 18th, 2009 11:41 pmBesides the styling aspects there is a technical aspect you unfortunately missed. Drew McLellan filed an article a year ago where he pointed out on misbehavings of the IE with the button element. By far the most intriguing one is, that IE6 (yes, our beloved dinosaur) sends the data of ALL buttons if multiple buttons are on one page. The article: http://allinthehead.com/retro/330/coping-with-internet-explorers-mishandling-of-buttons
I myself try to ignore the button-element as long as the dinosaur is around. There will be time and again two or more buttons on one page because of the usual search-form.
- 34
November 19th, 2009 12:14 amVery useful and great article. Thanks very much.
- 35
November 19th, 2009 1:10 amI see the articles in this site are now only for people who have no clue at all…
- 36
November 19th, 2009 2:02 amFor me this article is a perfect resource. During my studies I always have to deal with different types of code and programming languages and I just can not keep everything in mind. Especially stuff like this is a perfect bookmark for when we have to do something basic and I like to go the extra mile.
This article quite obvious does not focus on professionals because as it says it is about Designing CSS Buttons: Techniques and Resources. What does the article contain? Techniques and Resources. I do not what else I would expect from the article.Sidenote: I think there is a markup error in Basic Styling. IMHO the input submit should look something like this: <input type=”submit” value=”Sample Button” class=”button”>
- 38
November 19th, 2009 3:12 amPraise be to CSS3! Finally we are able to do stuff with CSS that actually looks good without images.
Great article.
- 39
November 19th, 2009 3:25 amCool. and very useful. Thanks for this article.
- 40
November 19th, 2009 5:33 amI would like to thank all those who featured on this site and definitely will come back to visit again
- 41
November 19th, 2009 7:46 amShould buttons have hand cursor or not?
Many pages have buttons with hand cursor, but buttons have arrow by default (even in desktop apps)Thanks
- 42
November 19th, 2009 8:17 amWhat a fantastic article! Great roundup of everything you could possibly want to know.
- 43
November 19th, 2009 9:09 amoverall nice article…although somewhat dated.
fyi, the link to top ten usability mistakes is broken. - 44
November 19th, 2009 5:45 pmSmashing start to recycling recycled, I agree with Danny above, about quantity and quality.
Fudging of the “new” articles content is not best way to continue…
Check this sentence:
“We try to convince you not with the quantity but with the quality of the information we present.”Familiar ?
;)
I see that you get rid of that drop down menu ;) and I like that.
- 45
November 19th, 2009 7:04 pmYou should also include “Fancy Buttons” in this list.
It’s a Compass plugin that uses CSS gradients and falls back to a png overlay on a solid color. It’s very flexible and is extremely simple. No hacks, no javascript, just beautiful buttons.Check out the three minute screencast and some screenshots here:
http://brandonmathis.com/blog/2009/11/19/fancy-buttons-are-here/ - 46
November 19th, 2009 7:55 pmI also have one image for my “Sliding Doors” links, but I’m using slightly different technique wich I find more elegant HTML-wise, since I don’t like empty tags to be used.
HTML
‹a href=”"›
‹span›Submit‹/span›
‹/a›CSS
a {
background: url(button.png) top right;
}
a span {
background: url(button.png) top left;
margin: 0 10px 0 -10px;
padding: 5px 8px 5px 18px;
} - 47
November 19th, 2009 9:14 pmnice work Janko, As a developer (more in to backend coding) I really find these kind of tutorials useful to understand/ develop front-end by my own
thanks again..
- 48
November 19th, 2009 9:56 pmgood collection!
- 49
November 20th, 2009 1:20 amFound a pretty good “button framework” :
http://www.p51labs.com/simply-buttons-v2/
all browser’s compliant, Requires no JS (except for personnalisation)As i always use Jquery, i find it really useful :)
Nice post still, Thanks - 50
November 21st, 2009 1:44 pmGreat read, thank you for the insight, I hope this finally helps those sites to unify their interface (button wise).
- 51
November 22nd, 2009 9:25 pmAbsolutely Brilliant article! The tone and manner the article was written in was so easily understood and followed. The topics and Information included was broken down and clearly communicated… even has someone as novice like me follow on with a very clear understanding! Great job, and look forward to your next articles.
- 52
December 24th, 2009 3:29 pmI’ve released a project called Sexy Buttons. It’s a HTML/CSS-based framework for creating beautiful web site buttons. Check it out at http://code.google.com/p/sexybuttons/
- 00
There are no trackbacks at this time. If you are interested in leaving a trackback, please use this URL.
Leave a Comment
Make sure you enter the * required information where indicated. Please also rate the article as it will help us decide future content and posts. Comments are moderated – and rel="nofollow" is in use. Please no link dropping, no keywords or domains as names; do not spam, and do not advertise!
Interact
Popular
- 100 Wordpress Themes
- Photoshop Tutorials
- Fantastic Wallpapers
- 40+ Excellent Freefonts
- Dual-Screen Wallpapers
- Wordpress Themes for 2009
- Illustrator Tutorials
- Incredible Free Icon Sets
- High-Quality Free Fonts
- 30 Scripts For Galleries
- Photoshop Text Effects
- Useful Icon Sets
- Web Design Trends
- iPhone Wallpapers
- Before Launching a Website
- CSS Layouts And Templates
- Photoshop Actions
- Stunning Pictures and Photos
- Fantastic HDR Pictures
- Logo Design Tutorials
- Free Design Templates
- 10 Mistakes In Logo Design
- Photoshop Custom Shapes
- 40 Creative Design Layouts
- 8 Layout Solutions
- 53 CSS Techniques
- Photography Techniques
- Black & White Photography
- Styling Design Elements
- CSS-Based Forms
- 50 jQuery Techniques
- 50 Portfolio Websites
- 50 CSS Techniques
- Creative Logo Designs
- Desktop Wallpapers
- 25 Open Source Mac Apps
- 50 Free Icon Sets
- “What Are You Suggesting?” Using Images to Influence - http://bit.ly/9ONNVq
- A Fresh Bottom Slide Out Menu with jQuery - http://bit.ly/aPzZaF
- Cross Browser CSS Transforms – even in IE - http://bit.ly/9aqnkv
- Free Script Fonts For Your Next Design - http://bit.ly/94pbsG
- Desire Lines: Let Your Audience Shape Your Design - http://bit.ly/aQvjB0
- The Message of Design - http://bit.ly/bC8O3H
- Surprise our trainee Jessica (@SmashingInsider) with replies and nice comments, please ;-) http://bit.ly/cBhji1































(56 votes, average: 4.63 out of 5)
Great post,
These types of posts are extremely useful for reference!
Thanks “Janko Jovanovic”