Digital in-line soft x-ray holography (DIXH) was used to image immobilized polystyrene and iron oxide particles and to distinguish them based on their different x-ray absorption cross sections in the vicinity of the carbon K-absorption edge. The element-specific information from the resonant DIXH images was correlated with high-resolution scanning electron microscopy (SEM) pictures. We also present DIXH images of a cell nucleus and compare the contrast obtained for nuclear components with the appearance in optical microscopy.