Pure CSS Buttons

This is simple and effective way to have buttons that scale (width-wise) without any weird browser-specific CSS (apart from IE6/7) or JavaScript implementations. Just using pure CSS goodness.

And since we should care about the user, the buttons also offer feedback – hence different images for :hover,:active CSS events.

buttons-pure-css-buttons

An example:

<a href="#" class="grey-button pcb">
	<span>Grey button</span>
</a>

To absolute position the button, it is recommended to wrap a <div> around it. Like so:

<div id="example-grey-button">
	<a href="#" class="grey-button pcb">
		<span>Grey button</span>
	</a>
</div>

Compatible with:

  • Internet Explorer 6.0 – 7.0
  • Firefox 2.0 – 3.0.8
  • Safari 3.0 – 4.0 (beta)
  • Opera 9.2 – 9.62

Download Pure CSS Buttons

View the demo

22 Responses to “Pure CSS Buttons”

  1. [...] Pure CSS Buttons, Design {Halmat Ferello} [...]

  2. [...] 3-Pure CSS Buttons [...]

  3. [...] Pure CSS Buttons [...]

  4. [...] -518px;}ボタンの変更ではclass名を変更するだけで適応できます。詳しくはPure CSS Buttonsで確認してください。最後にbackground-positionの変更もお忘れなく This [...]

  5. [...] Pure CSS Buttons [...]

  6. [...] Pure CSS Buttons Pure CSS Buttons [...]

  7. [...] Voir le Tutoriel [...]

  8. I need a submit button. D:

  9. I’m planning to get v2.0 coming out soon that will use CSS3 as well as images depending on the browser used. And you will get your submit button :)

  10. I need a submit button , too

    when is V 2.0 ready ?

  11. Love it. Will v2.0 be compatible with IE8?

  12. Hi, v2 will be out in September; mid to late, so look out for an update then.

    I’m going to add the following requests:
    - using css3 for compatible browsers
    - adding ie8 and ie9beta to compatibility list
    - adding button tag to css

  13. [...] Pure CSS [...]

  14. Hi !

    Good news about the upcoming v2 !

    I’ve been using these buttons in a couple of projects. These are great !

  15. Thank you! Expect some solid updates at the end of the month or so.

  16. First thanks for taking the time to build these buttons and share them. I’m really new to design and I was trying to follow your tutorial but wasn’t able to get the buttons to work. I’m sure it’s user error on my end. What’s tripping me up is (1 I am not sure if I just add these changes to the style sheet. 2) I have to use all the info in all 4 style sheets that are in the download that you have and the images or just code you listed for the example. Basically I’m lost.

    If you have a opportunity to give me a tip that would great.

  17. Hi Douglas, if you use the contact form to email me your problems I’ll more than happy to you help you out.

  18. Thanks! This looks great for my form.

  19. [...] http://www.halmatferello.com/journal/pure-css-buttons/ [...]

  20. [...] and color adjustable buttons with CSS, we are able to change the verbiage and colors with ease.Pure CSS ButtonsLink : Visit Tutorial » Description : This is simple and effective way to have buttons that scale [...]

  21. [...] [...]

  22. tutorial freak…

    [...]Pure CSS Buttons, Design {Halmat Ferello}[...]…

Leave a Reply

Further information

Date
Monday 13th of April, 2009
Tags
, , , ,
Categories
Design, Development, UX

You can leave a response, or trackback from your own site.

You can follow any responses to this entry through the RSS 2.0 feed.

Categories

Hmmm…

If you have a question about something then feel free to email and I'll be more than happy to write a journal entry about it.

Send me an email