Reputation: 817
sir when i insert a long string data the table size comes out of the page as show below.
should i userd table-layout:fixed;word-wrap:break-word; as:
table { border-width:1 px; background-color: #ffffff; border-right-color: #828DAF; border-bottom-color: #828DAF; border-top-color:#828DAF; border-left-color: #828DAF; table-layout:fixed; word-wrap:break-word; }
but its nt working???
Upvotes: 0
Views: 308
Reputation: 13236
As Tommy said, you want to use "table-layout: fixed" in the CSS for your table.
Then you have at least three choices for what to do with table cells that have too much content:
Upvotes: 0
Reputation: 3186
My suggestion would be to reduce your font size or add a div
around your table
and add overflow: auto;
to it ... so an horizontal scroll bar appears when you have too much content in your table.
Upvotes: 2