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
Tag: 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 Naked Day
Wondering where the fancy site has gone? What happened to the layout, the images, the niceties? Fear not – this is a temporary change to support CSS Naked Day, a push to encourage web developers to open up their sites to the harsh glare of public scrutiny. Will your site stand up to being naked