I'll have a guess at what the problem could be: when it comes to floating, the floating elements must come first in the HTML file, before the other containers.
Can't see your html file but have you got an extra
CSS and HTML have been made into PDF because there is too much code to fit.
https://drive.google.com/file/d/0B79AVhXe0eWCemRFcjNEeGdQbFE/edit?usp=sharing
https://drive.google.com/file/d/0B79AVhXe0eWCYy10a1B0T0xoV0U/edit?usp=sharing