Yes solar panels need to be built 'outside' as in not on floors. But you can build walls around them as you suggest. But they are still treated as being in space (or should be), due to lack of floor. It's a valid tactic to build panels near the center, and build station around them.