Crushed up flake food would perhaps be a bit easier for the fish to take, than pellet foods.
Livebearer's such as mollies,guppies,platy's have upturned mouths which suggest's that they feed quite a bit from the surface.
Fishes will forage from the bottom as well, but the fry are instictively drawn to the surface where the shape of their mouth's makes it easier for them to take food while searching through the plant cover if available, and where plant's on surface also offer a place to hide from predatory fishes.
Floating pellet food, may or may not be easily consumed by baby fishes as easily as crushed flake foods.
The most important medication in your fish medicine cabinet is.. Clean water.