Html
From Chaehyun
(Difference between revisions)
Line 1: | Line 1: | ||
=== table td wrap 하기 === | === table td wrap 하기 === | ||
* http://ykyuen.wordpress.com/2010/02/25/html-wrap-text-in-table-cell/ | * http://ykyuen.wordpress.com/2010/02/25/html-wrap-text-in-table-cell/ | ||
+ | |||
+ | <code> | ||
+ | <pre> | ||
<style type="text/css"> | <style type="text/css"> | ||
table{ | table{ | ||
Line 12: | Line 15: | ||
word-wrap: break-word; /* Internet Explorer 5.5+ */ | word-wrap: break-word; /* Internet Explorer 5.5+ */ | ||
} | } | ||
+ | </pre> | ||
+ | </code> |
Latest revision as of 06:27, 18 April 2010
table td wrap 하기
<style type="text/css"> table{ table-layout:fixed } td { white-space: pre-wrap; /* css-3 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ word-wrap: break-word; /* Internet Explorer 5.5+ */ }