It's not what you eat but how much of it, though doesn't mean you can only cut back on junk food because you still need the vital nutrients.
I've had friends who ate salads, subway, fruits & veggies & guess what? Gained weight. They consumed more calories they were burning & of course weren't...