html - How to fix the table width content independently? -
i trying fix width no matter of content is. but, width of table changing according it's content. how can fix it?
here code:
<style> table{width:25px; background:#66f;} </style> <table> <tr> <td>sn</td> <td style="width:20px;">name</td> </tr> <tr> <td>1</td> <td>wolfeschlegelsteinhausenbergerdorff</td> </tr> </table>
try this
<table> <tbody><tr> <td>sn</td> <td style="width:20px;">name</td> </tr> <tr> <td>1</td> <td style="word-break: break-all;">wolfeschlegelsteinhausenbergerdorff</td> </tr> </tbody> </table>
Comments
Post a Comment