以后 (yǐhòu) means after, and 以前 (yǐqián) means before. In Chinese they come after the event: 早饭以后 (zǎofàn yǐhòu), breakfast-after.
On medicine you will often see the instruction to take it after meals: 吃饭以后吃 (chī fàn yǐhòu chī).
On their own, 以前 (yǐqián) means in the past, and 以后 (yǐhòu) means in future, from now on.