the <a name="training"/> tag was causing the formatting to go funny, I changed it to <a name="training"></a> and now its fine. weird...