adjusts the style for the width