modified the tag css
More robust tag handling