A while ago I posted a solution for generating CSS random background images, which provided a PHP server side solution for adding random background images to stylesheets on the fly. Since it’s initial posting the solution provided there has been tweaked and fine tuned based on use and reader feedback. A lot of the feedback
Category: CSS
Convert pixels to ems – with ease
I came across a very neat, and immensely useful tool online today that converts fixed pixel sizes to their relative em size equivalents. The Em Calculator bases conversions on a specified base pixel conversion ratio, and provides you with immediate calculations for nested child and sibling nodes of the DOM tree. Big thanks to Piotr
CSS srolling table with fixed header
Came across this example some time ago which details how to give a fixed header and/or footer to a scrollable table.
CSS hacks – Targetting IE7
A simple hack to target IE7 only: [code]/* Target IE7 only */ html>body #getquotebox { *background: url(../images/loginbox-bg.jpg) 10px left no-repeat; } /* end */[/code] Can be used in cases where conditional comments can’t be, for whatever reason.
CSS Random Background Image Rotation
Edit: If you do not have access to the PHP source code on your site, try this random background image script generator Here’s something I’ve been playing with lately to add a little bit of visual dynamic interest to sites that don’t have frequently changing content. The concept is not new – use image rotation