Do you take Zantac (ranitidine) for an ulcer before, during, or after a meal?

Zantac (ranitidine) before/after. It is preferable to take it on empty stomach before meals in my opinion.But it can be taken either way.