// Get float width of an element $("#a")[0].getBoundingClientRect().width element.getBoundingClientRect // http://stackoverflow.com/questions/11907514/getting-the-actual-floating-point-width-of-an-element