extraccting styles needed for attachments in css files