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

9 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 :)

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