Center a fixed position element

Set left to 50% and add negative margin-left of half the width of the element. This is how you center a fixed position element. Possible scenarious where you might need it is videos, or any other elements in overlays, light/white-boxes.

CSS box-reflect

Sometime ago we used to add gif images on web site to make them look cool. Now, we can use trickery as box-reflect. It's one of the "new" css properties out there, that is not yet that widely supported. Currently only webkit browsers support it (Chrome and Safari), but there is a nasty trick to…

Form placeholders across browsers

HTML's placeholder attribute is a nice think to use, but still many clients ask for IE 9 and even 8 support. That's annoying from one side, but from another, you have a reason to charge a bit extra. However, let's see how we can solveĀ those 8 and 9 disabilities. Of course you would need jQuery…

Universally unique identifier

Sometimes when you submit data through a form, you might need to have an unique identifier. Incrementing a value each time you submit the form might not be a choice if your communication with the database is only one way - POST. We would have to create an universal unique identifier - a string that…

Reverse table data

Not long ago I had to reverse the data of a huge table. It would have been crazy to do it manually, considering that jQuery can solve it in 3 lines. Here is the solution I found and used: DEMO After running the script, you can easily copy the markup and keep it the way…

Styling numbers of ordered list

Sometimes I need to make the numbers of an ordered list in different color, size, or whatever. Here is a short starter snippet that does that magic. DEMO & DOWNLOAD