![]() ![]() ![]() Avoid applies where line breaking is suppressed within the element: the UA may only break within the element if there are no other valid break points in the line. None is utilized where lines may not break text that does not fit within the block container overflows it. Normal is used where lines may break at allowed break points, as determined by the line-breaking rules in effect. Text-wrap specifies the mode for wrapping text, and includes the following possible three values, normal, none, and avoid. The values for overflow-wrap include normal hyphenate, and break-word.Ĭurrently the use of overflow-wrap does not appear to be supported by any browsers. It only has an effect when the values for text-wrap are either normal or avoid. Overflow-wrap specifies whether the browser or user agent may break within a word to prevent overflow when an otherwise unbreakable string of characters is too long to fit within the line. This is the result as displayed in Firefox 7.0.1: Figure EĪs previously mentioned, the practical application for the word-wrap property can be utilized within coding for comment sections for blogs in particular or for forms, which will help in preventing long strings of text that might be entered by hackers trying to vandalize sites. Using the ellipsis for text overflow, the example CSS3 code below defines a style for a paragraph with a solid 1px color border, an area width of 400px, with 5px padding: p
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |