You can mark items to sell, by going to the “Resources” screen, and click on a resource. This will pop up a window, where you will be able to select the quantity you want to sell.
After that, every 5 to 10 min, a merchant will try to buy some resources from you.