March 19th, 2009 under css, php
Jay Salvat at nettuts has written an article on adding variables to your css files. I like the approach, which includes caching the results, though the code presented is not 100% secure, as commenter Pelle has noted.
As for the most popular response, having apache run css files as php code, there are a few [...]
December 28th, 2008 under css
I came across this small page that goes through ten css-positioning tidbits available when coding a site. And, thanks to javascript, you can see real-time effects caused by the css changes mentioned in the tab you click.
And what did I learn from this? I learned that “static” is the default position for elements. [...]
July 12th, 2008 under css, design, web
Occasionally you’ll be coding out a site, and you want a “sticky footer”, a footer that sticks to the bottom of the browser viewport or the bottom of the main content section, whichever is lowest.
There are a few notable sites that have posted methods for doing this, but the short answer is it doesn’t work [...]
May 11th, 2008 under css, design, html, standards, web
I came across a page recently that uses ordered lists for the entire layout — not just the menu. The entire layout is in two parts: one ordered list for the header/body/footer, and another ordered list for the three columns inside the body.
I find this to be an interesting approach to multi-column layouts. [...]
April 20th, 2008 under css, design, web
Ever seen the odd site that, instead of solid or absent underlining, has a dotted or dashed underline? Ever wonder how it’s done? It’s really simple: border-style.
All you need to do to get an alternative underlining effect is to, first off, hide the default underline with text-decoration:none, and then specify a bottom [...]