Elemental sensitivity in soft x-ray imaging of thin foils with known thickness is observed using an ultrafast laser-plasma source and a LiF crystal as detector. Measurements are well reproduced by a simple theoretical model. This technique can be exploited for high spatial resolution, wide field of view imaging in the soft x-ray region, and it is suitable for the characterization of thin objects with thicknesses ranging from hundreds down to tens of nanometers.