Adapt the css for the type