News for hackers. Stuff that matters.
Re:Show HN: progre(c)ss by codez on Friday February 07, 2014 @11:08AM (#7196893)
The first one :)

The CSS makes use of `:after` to show the bar on whichever element you choose meaning that we don't have to create extra progress elements etc.

Re:Show HN: progre(c)ss by gberger on Friday February 07, 2014 @11:14AM (#7196947)
Oh, indeed, that's definitely an improvement. Didn't realize I could put the 'progrecss' on any element.
Re:Show HN: progre(c)ss by codez on Friday February 07, 2014 @11:18AM (#7196971)
Yeah that's the angle I was going for with this so it's just super simple to add it wherever you want it without having to worry about layouts etc. or borking your elements.

Using :after means you don't even need to factor it as an element into your existing design, you just place it on top.