20 Feb 2007 logic   » (Journeyer)

More resume updates

So, I took the resume update one step farther, and borrowed/mangled/rewrote a few bits of JavaScript for my resume that make it possible to switch to "printable" mode with a link and an updated stylesheet, and for certain chunks of details to be expandable/collapsable. I eneded up settling on using <div class=...> everywhere for it, because while using an unoredered list would have been more semantically correct, I just couldn't get it working the way I wanted to across multiple browsers, while this solution both validates and loads in both Firefox and Internet Explorer.

(For the curious: what I was trying to do with unordered lists was have the actual HTML itself be exceedingly simple: just a bit of <ul ...><li>...</li></ul> with some class="..." markup here and there as necessary. The idea was to have a bit of JavaScript tweak list-style: ... to change out the URL for the expand/collapse graphic, and change the display: ... attribute on an associated child list. Then I realized that, semantically, using an unordered list wasn't quite right; what I wanted to really use was a definition list (since what I'm displaying is really a title, and an associated bit of text that I want to toggle the visibility of). A definition list doesn't support bullets, which meant I'd need to add additional markup that didn't really need to be there; so much for separation of style and content. At the end of the day, I decided to just fall back to my original, working version, rather than keep fighting with something that really didn't give me much more over the original. Thus endeth Ed's foray, again, into stylesheets and markup.) need to stick another

Syndicated 2005-11-15 13:05:00 from esm

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!