fixes for multiple ids on same page, <br/> tags, and oversize or undersize containers