use class instead of inline style to display single-line work content