fix css and trim a div's text