How do you hug a boyfriend who's shorter than you?

You can hug him side-wards. By side-wards you don't have bend too much.

Just hug him around his neck, that'd probably be best suited for you. You could also kneel down a little I suppose.