If you both want the same thing from the relationship, then you have settled half the battle. Just like couples who are the same age, if you aren't on the same page, things will be just as difficult.
Though I'm not an expert in relationships by any means, ultimately, leave all judgment behind when you find someone truly special. No two people are the same, just like no two romances are the same. Take each person as he or she comes.
I know lovers who are nine years apart and just as happy as those who are two months apart in age. Don't close yourself off based on age, but take into consideration where people of different ages are in their lives. Just because someone is a certain age doesn't mean he or she fits a certain status quo.
Allow love to work its mysterious magic if you find yourself having a special connection with someone who is older or younger than you. Explore it and let it grow beautifully.