Fixing the CSS errors from changing from <a> tag to <div> tag