Mr. Tadic narrowly defeated ultra-nationalist challenger Tomislav Nikolic by a margin of 51 to 48 percent .