The resist action of polystyrene (M-w, 2,600,000) towards electroless deposition of gold on Si(100) surface following cross-linking by exposing to a 10 kV electron beam, has been investigated employing a scanning electron microscope equipped with electron beam lithography tool. With a low dose of electrons (21 mu C/cm(2)), the exposed regions inhibited the metal deposition from the plating solution due to cross-linking-typical of the negative resist behaviour of polystyrene, with metal depositing only on the developed Si surface. Upon increased electron dosage (160 mu C/cm(2)), however, Au deposition took place even in the exposed regions of the resist, thus turning it into a positive resist. Raman measurement revealed amorphous carbon present in the exposed region that promotes metal deposition. Further increase in dosage led successively to negative (220 mu C/cm(2)) and positive (13,500 mu C/cm(2)) resist states. The zwitter action of polystyrene resist has been exploited to create line gratings with pitch as low as 200 nm and gap electrodes down to 80 nm.