Presentational JavaScript

  • 7th May 2004
  • with Comments off for Presentational JavaScript
  • Filed Under: Weblog
  • tagged with:

I've been thinking about using JavaScript as an additional presentation layer on top of CSS for a while now but it looks like Bobby Van Der Sluis has beaten me to it with his fantastic article on Presentational Javascript. Basically, what he's documenting is using JavaScript to overcome problems that CSS currently can't solve elegantly, like vertical centering. Write your CSS and then use a simple DOM script to fix it, in a similar way to the IE7 script that came out a while back. The advantage is that your HTML and CSS remain clean only leaving you a script element to remove when the time's right. Go read the article then go read your Dynamic HTML book...

  • Comments off for Presentational JavaScript