Using a dummy span element to calculate the input width.