you can have corals and sea horses together. however, I would advise against having a seahorse is a nano tank. They are particularly sensitive to water parameter changes and don't tolerate fast water movement very well. Also they are slow and picky eaters, so they generally need a species tank to survive. Also generally they do well in taller tanks.