Somehow IE refuse to display properly with width:auto
. FF and Safari had no problem with this property and displayed correct width size to match content. IE would set the width size to 1 pixel wide. Fortunately, I came across this post. Thanks to orcrist’s recommendation, removing the width
attribute fixed the issue for me on IE. 🙂