how do you divide the following words

(attachment and ugliness)?

I found these at dictionary.com.

at·tach·ment

ug·li·ness