Donald Trump won in Florida by securing 49.1 per cent of the vote.  Mitt Romney lost in Florida in 2012 by also securing 49.1 per cent of the vote. 

However, Clinton lost ground compared to Obama's 2012 performance when he won with 50 per cent. 

Democrats tend to perform better in areas with higher population densities and this was still the case this year, with Clinton winning in the counties in and around the cities of Tampa, Miami and Orlando. 

Although she did attract more votes than Trump in these areas, more often than not she won by margins that were less convincing than Obama did in 2012.  Of the nine counties that Clinton won in Florida she did worse than Obama did in six. 

Conversely, Trump improved on Romney's performance in 47 of the 58 counties in which more people voted Republican than Democrat. 

His gains in these more rural areas were enough to counteract his losses in urban areas - leaving him static at 49.1 per cent of the vote across the state as a whole. 

Clinton had no such counteracting force to balance out her losses in the cities - and consequently she lost ground.