Shelves and ledges should be attached right under the ceiling, so you will create an illusion of a taller space.