What I plan to do is make a slight change. Instead of display several blank gifs, display one blank gif with the width appropriately set for the proper indentation. I do this in another program I have made and it works much better.
I've tried the non breaking space thing and I could never get it to align properly. This was some time ago, so maybe it was due to a crappy browser:).