You can grow herbs successfully in pots, although you will need to clip them regularly; rosemary, in particular, is naturally a small shrub, so it's hard to have it do well in a container. If a 24-inch pot is all you have room for, you can give it a try, but the larger, the better.
I would suggest chives in the center and prostrate forms of thyme, oregano and sage around the sides. Herbs thrive on neglect, so don't fertilize much, if at all, and be careful not to over-water them. Most herbs need full sun, too.
Basil needs more water than other herbs, so I would put that in a separate container. In my garden, I plant it with the tomatoes and peppers.
Here's some more information on specific herbs and container planting:
Best Herbs for Container Gardens
Hope this helps.