Showing posts with label styling. Show all posts
Showing posts with label styling. Show all posts

Friday, September 8, 2017

Styling checkboxes radio buttons and file uploads

Styling checkboxes radio buttons and file uploads


Unfortunately there is still no standard and cross-browser css styling for some basic html elements. Styling checkboxes, radio buttons and file uploads usually needs some javascript magic... or does it?

Checkboxes and radio buttons

I found a great page that utilises css to style these elements. The only caveat is that you have to make sure that your html code is built exactly as the examples it provides.

Link: http://csscheckbox.com/

File upload

For the file upload you need jqurey. I tried a few and this was the simplest one I found:
http://www.appelsiini.net/projects/filestyle

Example


Bonus: Textarea tricks


I found a great article about styling textareas here: http://css-tricks.com/textarea-tricks/

download file now

Read more »

Sunday, August 20, 2017

Styling a select element with jQuery

Styling a select element with jQuery


A very good tool can be found here to style select elements with jQuery:
http://www.bulgaria-web-developers.com/projects/javascript/selectbox/

The only problem is that it uses some deprecated code so you have to edit it and change .live to .on in its source to make it work.

download file now

Read more »