This code works perfectly on CodePen:
http://codepen.io/ekilja01/pen/pEXLNY
However, when tried on jsfiddle, the navigation bar is completely messed up. External resources are added on. What could be wrong? Any help would be appreciated!
<link href='http://fonts.googleapis.com/css?family=Lato&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
... (The rest of the markup remains unchanged)