TechProsaic

I write about great software, Internet technology, cool gadgets, and The Next Big Thing.

February 23rd, 2004

Compressing your CSS with PHP

http://www.fiftyfoureleven.com/sandbox/compress-css-with-php/

Here’s an extremely elegant tip that would come in handy for larger sites where your CSS is 10K or larger.

February 20th, 2004

Richard@Home: Server Side CSS Sniffing - coping with troublesome browsers

The link

Great technique using PHP to detect the user agent of a visitor’s web browser, and then doing some regex magic to generate a filename. Here’s what you use in your HTML:

<link rel='stylesheet' type='text/css' href='<?php include 'inc_css.php' ?>'/>

The included PHP script will then return for example “w3c.css” to Firefox and “ie.css” to Internet Explorer. Yes, it’s duplication of effort maintaining two (or more) CSS files. But–no hacks to worry about now or down the road when browsers change. Plus he made the point that I’ve been thinking about a lot lately:

“You can create a specific style sheet for small screen readers such as PDA’s or web enabled phones.”

[TIP: Browse to Google from Pocket IE, you might be surprised that its a different page. Do they sniff the user agents? They don’t use CSS, I checked.]

February 10th, 2004

Too much to read, too little time!

Please read these for me, I don’t have time. Feel free to post summaries in the comments. Thanks in advance. :)

http://www.cssvault.com/navigation/css_drop_down_menus.php
http://slashdot.org/article.pl?sid=04/02/09/2233234
http://slashdot.org/article.pl?sid=04/02/10/0059217

February 10th, 2004

Disney Pics!

Here’s round 1, a random sampling of the 700 digital pictures we took while at Disney last week. (That doesn’t include the 4 or 5 rolls of 35mm!)

Enjoy. :)

http://gallery.halr9000.com/disney2004

February 8th, 2004

Back from Disney!

Ok, the family is back from a full week at Disney. And I mean full. I’m retouching photos now (the first batch will be 273 photos!), and once I upload some I’ll write up a blog on the trip.

|
Close
E-mail It