Photon-counting detectors are promising candidates for use in the next generation of x-ray CT scanners. Among the foreseen benefits are higher spatial resolution, better trade-off between noise and dose, and energy discriminating capabilities. Silicon is an attractive detector material because of its low cost, mature manufacturing process and high hole mobility. However, it is sometimes claimed to be unsuitable for use in computed tomography because of its low absorption efficiency and high fraction of Compton scatter. The purpose of this work is to demonstrate that high-quality energy-resolved CT images can nonetheless be acquired with clinically realistic exposure parameters using a photon-counting silicon-strip detector with eight energy thresholds developed in our group. We use a single detector module, consisting of a linear array of 50 0.5 × 0.4 mm detector elements, to image a phantom in a table-top lab setup. The phantom consists of a plastic cylinder with circular inserts containing water, fat and aqueous solutions of calcium, iodine and gadolinium, in different concentrations. We use basis material decomposition to obtain water, calcium, iodine and gadolinium basis images and demonstrate that these basis images can be used to separate the different materials in the inserts. We also show results showing that the detector has potential for quantitative measurements of substance concentrations.