Buttons, buttons, buttons - they are anywhere and everywhere. No matter how simple a web-application is - they are there.
I have just one problem with buttons - they are GREY as in boring, concrete and a rainy day. I want them blue, green, yellow, red, you name it, any cool color but GREY.
Since our hex-packing abbot
BBQ seems to have made embedded images the latest fashion, I’ve decided to contribute with one of my hacks in this field.
I’m a big fan of letting the users of my web-applications control the look of the HTML I produce for them so I let them control the colors and fonts of most things as I said
here. Being a bit extreme, I go a bit further by letting them control the colors of the push buttons (images) in various parts of my apps to match their choice of colors.
Here is some code I wrote to generate custom colored buttons.
This is how I do it, but as we all know TIMTOWTDI.
/brother t0mas
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.