The problem is you set float: left for parent then set position: absolute for iframe you should choose one of these, if you want to make iframes side by side with float so you don't need use absolute for childrens, remove inline css for iframes and use float for parents. if you want use position absolute then remove floats. if you want to use absolute position for children you should set position: relative for parent.