ECMS-4717: Fix problem in css for inline mode