Archive for January 15th, 2008
Internet Explorer (IE) ignores white-space: nowrap on table’s TD
Used gridview today and client wanted content in tables to be displayed without any wrapping. First solution of course just set up:
<table><tr><td style=”white-space: nowrap”>qwe-asd</td></tr></table>
And of course it works fine both in Opera and FireFox but not in IE7 (have not tested under IE6). The picture changes of course but some cells are still wrapping.
Workaround is to use template field with span:
<table><tr><td><span style=”white-space: nowrap”>qwe-asd</span></td></tr></table>
24 comments January 15, 2008