What is more important in undergrad civil engineering: depth or breadth?

<p>I am a civil engineering major and my professor told our fluid mechanics class that during undergrad we should take a variety of courses as opposed to specializing in one concentration. So is he right? Should I take classes in structural, geotechnical, transportation, management, etc. as an undergrad or focus solely on one specialization in civil engineering? Which choice would be better on the job market? This is assuming I do not go to grad school until I get a few years of work experience?</p>