The problem is that the Create Dynamic Array behavior adds code abovethe doctype tag which causes the css layout to break.
To fix the problem:
in the server behaviors list, select the Create Dynamic Array behavior. Switch to code view, the code for the Create Dynamic Array Behavior will be highlited. Right click the highlited code and select Edit -> Cut.
In code view find the <head> tag, place your cursor at the end of the line that contains the <head> tag, and hit enter to start a new line. on the new line use the keyboard shortcut crtl (cmd) + v to past the Create Dynamic Array code. Save the page and test.