Display random comic strips from rss feed
Tuesday, December 6th, 2005I was growing bored of my old wordpress theme so I set out to do something more fun. I wrote a python script to return a random comic strip from the dilbert rss feed and set it as the background of my header.
The script, written in mod python, uses feedparser to grab an image [...]
- Safari/Konqueror fix: It appears that on konqueror based browsers the styles defined in the page header takes precedence over the ones in css. I had some duplicate definitions for header background in the header file which overrides the css so I had to delete that. This makes sense, however there was another behaviour which doesn't. The width and height css attribute for the header id doesn't seem to be honoured on the page. I had to specify it in the page for it to work properly, i.e.,
<div id="header" style="width:100%;height:211px;">
Thanks to Diego for pointing this out :)