
I thought I would share with you quickly how you can use CSS3 selectors to spice up your Impromptu buttons. Lets say you have a prompt with a Delete button. Delete normally indicates caution/danger/warning which is usually represented by a red color. We can let our CSS do the dirty work and have it find any buttons inside Impromptu which has an id ending with “Delete”. Here is how you would do such:
.jqi button[id $='Delete']{ background-color: #aa0000; }
And now you have a pretty red button like so:

Thats all there is to it. Be sure to check back first of the week for a super post! Enjoy!
Related posts:


2 Responses
Jeffrey Gilbert
16|Apr|2010had no idea that existed.
trent
16|Apr|2010There are many more too. Here is a pretty cool test which will show your browsers support for each of them: http://tools.css3.info/selectors-test/test.html