Fix bugs in css alignment.