Know that, if you give explicit dimensions to an element and the content is bigger than the dimension you have given the content will overflow the container.
I don't see the problem you are describing at the link you sent, but epending on the actual problem, you can use the following attributes on your CONTAINER :
word-wrap: break-word; which will force long words to break rather than overflow.
overflow-x/-y: hidden which will hide the overflowed content; Take care when using this as it may present an accessibility issue.
hope that helps