A CSS code instance that avoids a form table being stretched and distorted

Source: Internet
Author: User
CSS how to avoid the table because the picture size or too long English characters and deformation of the open, in the CSS to add the following code can be prevented, while the English word will also break the word, not by letter this. I would like to say that this is not supported in the CSS2.0, but can solve some practical problems. Page design is not designed for standard testing, or user-oriented, in some of the current web standards can not solve some of the problems, I will adopt some non-standard methods to deal with, as long as the mainstream browser such as Ie,firefox,netscape,opera can be correctly displayed, I will put the checksum through the Web table in the secondary position, and MS has suggested that the attribute be added to the CSS3.0, perhaps CSS3.0 will support it. Web standards are also evolving, and perhaps tomorrow's standards are added to this attribute, or new attributes are presented to solve them.

Look at this connection:
   http://www.w3.org/TR/2003/CR-css3-text-20030514/

Common CSS Code Snippets:
<style>
Table {
table-layout:fixed;
Word-wrap:break-word;
}
div {
Word-wrap:break-word;
}
</style>


Related Article

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.