Buttons with graphical icons on right (1st attempt)
Buttons with graphical icons on right (2nd attempt)
How they Work
The basic HTML looks like this:
<a href="#">make new list</a>
The CSS button styles in this example page are organized such that you can style a link as a button, choose the color & size, like this:
<a href="#" class="button buttonM FDpurple">make new list</a>
Some Advantages of HTML & CSS Buttons
- reduced graphics production work
- reduces overall page weight
- fewer assets = fewer hits on server
- greater accessibility (for cases like disabled users with screen readers)
- resolution independent
- allows for visual feedback (hover & active states) without javascript or images
- easily revisable (for instance, a button label can be changed without having to make a new graphic, or all buttons' visual appearances can be changed across the entire site at once by modifying the CSS)
- can be conditionally styled for different contexts (for instance, larger on touch devices than on desktop browsers)
- would allow for the use of webfonts (not demonstrated in these examples)
- degrades gracefully (for instance, browsers that don't support the CSS3 border-radius property will simply display rectangles, and browsers that don't support CCS3 gradients will display a fallback solid background color). For example, Windows IE8 might display the "make new list" button like this:
make new list