The truth is some people are just not going to like you, for no fault of your own. You could be the most kind and perfect person in the entire world, and someone is still going to find some absurd reason to hate you.
Because in many cases, it really has nothing to do with you. There are a certain percentage of people that, when they cannot categorize you or put you into a box, are going to dislike you -- period. So if you are different, if you have views that aren't 100% within the 'norm', or you are doing your own thing in life, you are most definitely going to run into some very baseless hatred.
So just focus on your intention, and don't worry about trying to please everyone, because some people only know how to hate.