2 ms·
I actually think the best way to display these types of comments is with nested UL/LI's. It makes it really easy to call a recursive function to write out the
by ronnier 16y ago
I actually think the best way to display these types of comments is with nested UL/LI's. It makes it really easy to call a recursive function to write out the comments then adjust the indentation with CSS. For my mobile HN site, I do just that. From there, it was trivial to add in the ability to collapse and expand comments. For example, view this page through my reader (It's meant for mobile phones):
http://toadjaw.com/hn/comments/1398250 http://toadjaw.com/hn/comments/1398250