refine CSS.
Do not crash in corner cases. Should fix http://dev.1flow.net/ceca/1flow/group/44392/