Is there a using CSS in which to create a line?

I am creating a little function that shows an individual the completion level of thier project in a percent (i.e., 34% done) and in my non-CSS days I took that number and had a 1 pixel image repeated 34 (or however many) times.

I would love to not have to use a picture and am hoping that CSS has a solution. Does anyone have any ideas?

Thanks in advance,