Putting others down in order to feel better about oneself is exactly because of low self-esteem.
Self-esteem does not depend on others (how they are viewed by you or how you are viewed by them.)
Self-esteem is measured by your courage and willingness to shoulder yourself.