Below is the screenshot of my div in which I'm printing the name of the employee.But if the name is too long it exceeds the div.
itried by adding
Try adding these:
width: <set your width>;
To clip your text if it is too long or exceeding the set width. Also adds ... if it exceeds.