Monthly Archives: October 2007

To <abbr> or <acronym>?

I believe the easiest way to differentiate them is to use <acronym> if you can speak it like a word, not spell them out like a group of letters. We say “ray-dar”, not are-aay-dee-ayy-are. So we get <acronym title="Radio Detection and Ranging">Radar</acronym>.

If spelling them out letter by letter it’s an <abbr>, like this <abbr title="Cascading Style Sheets">CSS</abbr>.

Thank’s to this comment on a old thread at for cutting it clear.

Offcourse, Microsoft has decided not to support the abbr element in its browsers …

Some other resources for further discussion:


My bad

I’ve been stuck on a piece of CSS lately, simply couldn’t get the :hover to work on an anchor <a> element, in IE6 offcourse. Setting the positioning, the positioning of the container element, floats, z-index’s. All to no use. In the end I gave in and posted my problem on css-discuss. This is the reply I got:

This is the trouble line: <a class="link">Les mer<⁄a>. For an anchor tag to take effect, it has to have the href=”” attribute set, otherwise the link won’t fire and it seems that IE6 isn’t
acknowledging your <a> tags without href, hence your lack of :hover effects.

What a headslapping moment. I was so fixated on the problem being with IE6, that I didn’t realize the problem was in the chair.

Webdeveloper tools for IE

Firefox has all the plugins you can poke a stick at, but what to do when IE is doing its “thing”? Windows Explorer plugins to the rescue!

Westciv’s XRAY is a javascript bookmarklet that lets you click on items in your webpage and view some of the CSS information regarden the area you’ve selected.

Microsoft has their own IE Developer Toolbar that is similar to the Firefox Firebug plugin. It lets you inspect and alter the DOM, change settings, outline elements, find CSS etc.

That should make the bughunt slightly easier for everyone.

Update: I’m running multiple IE’s, and as a result (I assume) the webtools only work in IE7.

HTML tidy for Firefox

The HTML Tidy plugin for Firefox is a great little tool when viewing other webpages’ source. It shows any errors, where they are, and what they are. It also has a clean-up function for those pesky unreadable CMS made html codes, making it easier for the human eyes and brain to read.

If you’re on Windows you’ll get HTML Validator off the Firefox add-ons page. For some reason Mac-users must do a slight detour, which I found after some googling. Go to the HTML validator sourceforge index page, and find the file called tidy_macintel_xxxx.xpi on the date of 26-Oct-2006. That’s spesificly for the new Intel-Macs, but you’ll find any other version you’re interested in on the same page.

It’s a great companion to the Web Developer Toolbar and Firebug.

Update: The Mac-file I’m referring too is for Intel Macintosh’s only! The filenames on the sourceforge page gives you a fairly straight forward clue to which OS and make it’s for, so remember to read before installing.

If you try to install the macintel on a G5 or earlier Mac it will cause Firefox to completely give up on you. The fix is then to export your bookmarks, delete Firefox, re-install. And then start adding all the extensions you’ve lost in the process.

Save the world

Today is Blog Action Day. What is that? It’s a reason for me to go off-topic and list up a few things I do to make the future a little bit more pleasant. I believe that doing yours for the environment is more important then weather to use strict or transitional doctype…

It doesn’t need to be any big changes. Here’s a little list of what I do at home today, perhaps there’s some you haven’t thought of, or some I haven’t thought of. That’s your cue to let me know.

  1. Turn off lights and heating in rooms you’re not using.
  2. Recycle paper. Those newspapers sure rack up quick!
  3. Recycle aliminium.
  4. Recycle plastic.
  5. Recycle glass.
  6. Return empty bottles.
  7. Bring a fabric bag or backpack when you go grocery shopping instead of taking home a new plastic bag each time.
  8. Use public transport.
  9. Don’t use your car for local transportation.
  10. If you have to use your car to work, try carpooling.
  11. Ride your bike!!!
  12. Buy local food. That is food that has traveled short. Go to your local farmers marked.
  13. Eat less meat. Really, it’s not that hard!
  14. Go on holidays that doesn’t require airplane rides. The train can also be nice.
  15. Grow your own vegitables.

Some of those might seem pointless, but they aren’t! They help me keeping a conscious mind while doing normal everyday things. Also it makes you feel good about yourself. I don’t mind riding the bike through rain and snow instead of sitting in a nice warm car. The bike still gets me faster to work. And after I sold my last car my bank account is noticeably healthier.

There you go, my 15 ways to save the world. (Now there’s a heading that would fit Digg.)