fixed printCss to include styles for positioned elements