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.
WordPress database error: [Table 'halr_pmachine.wp_categories' doesn't exist]
SELECT cat_id, cat_name FROM wp_categories WHERE link_count > 0
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.
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.]
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
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.
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.