In the second example, the <head> element and everything in it has been removed, including your CSS, which is why the design looks different. Try moving your styles - that is the <style type="text/css">...</style> tag and everything in between - to after the starting <body> tag.