Creating list on dynamic page that feeds from database

setting up a dynamic page with amenities/services and trying to establish best fields/user input for form so on the dynamic page, only those selected show by name. But the issue is making them appear only if selected. Therein is the problem as do not want spaces if not selected
Example:
Breakfast
Lunch
Dinner

If set up user input form and say, they only have Breakfast…that is not hard, as shows up first in list. But let’s say they choose Breakfast and Dinner (not lunch)…then if using text fields on dynamic page to show, then there are two blank spaces…
Example:
Breakfast

Dinner

if you have a lot of options, that creates a lot of blank space. What am I missing in constructing (I am codeless)