rewrite using calc() css3 property