convert to using css margins