HTML table wraps by length

Source: Internet
Author: User

<table style= "table-layout:fixed; Word-break:break-all; Word-wrap:break-word; width:200px; " >

Among them, Table-layout:fixed says:
The column widths are set by the table width and column width. In a fixed table layout, the horizontal layout depends only on the table width, column width, table border width, cell spacing, and the contents of the cell.

Among them, Word-break:break-all says:
The Word-break property specifies how the wrap is handled. Break-all allows line wrapping within a word.

Among them, Word-wrap:break-word says:
The Word-wrap property allows long words or URL addresses to wrap to the next line. Break-word means wrapping inside a long word or URL address.

HTML table wraps by length

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.