CSS and PHP


Ho trovato un paio di articoli graziosi nelle mie peregrinazioni online. Il primo è intitolato “Making Simple Work of Complex CSS Layouts“, l’introduzione recita

What are we trying to create?

  • A flexible layout, one which is happy to contort to the requirements of its contents and surroundings
  • Decent browser support (…or support for decent browsers, at least!)
  • Graceful degradation in legacy browsers
  • Something that will make the bosses and marketing types happy while still allowing even access to all customers — current and potential

E’ (secondo me) ben fatto, presenta qualche accorgimento interessante ed impaginato con S5, il sistema di presentazione basato su XHTML, CSS e Javascript implementato da Eric Meyer autore di libri sul CSS (qui un’intervista).
Fra parentesi sia Andrew Krespanis, autore della presentazione, che Eric Meyer usano WordPress sul proprio blog.

L’altro articolo è “11 Cool Things You Can Do With PHP” è ancora una presentazione (sempre html ma non in formato S5 e si vede) e fa una carrellata sulle potenzialità spesso non considerate del PHP:

1. Generating (! HTML)
< ?php header('Content-Type: whatever\/you-can-think-of'); // ... ?>
application/pdf, text/csv, text/xml, image/png, image/gif, application/x-shockwave-flash, … email, winapps

Per ogni argomento presenta alcuni link a documentazione più ampia o ad esempi. L’autore è David Sklar consulente e autore di diversi testi sul PHP.