News for hackers. Stuff that matters.
Re:Ask HN: Why are images used to indent comments? by TweedHeads on Thursday August 06, 2009 @01:33PM (#745955)
Lack of CSS understanding. No excuse.

Once you know your tools you can do wonders you'll be amazed at how easy it was.

I bet a hundred CSS experts here can give you some interesting ways on redesigning comments.

Show us your best.

Re:Ask HN: Why are images used to indent comments? by TweedHeads on Thursday August 06, 2009 @01:37PM (#745967)
Oh gawd, I've never taken a peek under the hood of HN but all these font tags almost made me slash my wrists in despair.

Time to run a "Redesign HN in HTML5" contest,

Reward: a standing ovation, and an iPhone.

Re:Ask HN: Why are images used to indent comments? by TweedHeads on Thursday August 06, 2009 @01:59PM (#746019)
Here is what I'd do, start from here:

  <div class="comment level0">
    <a class="up"></a> 
    <a class="dn off"></a>
    <h1>title</h1>
    <p class="minus2">comment here</p>
  </div>
Then apply styles at will, increase padding per level and dimming per negative karma.

I bet code size decreases while readability increases.

Re:Ask HN: Why are images used to indent comments? by zepolen on Thursday August 06, 2009 @04:05PM (#746279)
No need to use class 'levels', as nested <li>'s shows in regards to padding.