Cascading Style Sheets Tutorial

Css achieve with the text automatically hide

  Not-for-line <NOBR> </ NOBR> (not a newline) 

  Overflow 
  Version: CSS2 compatibility: + IE4 + NS6 inheritance: 

  Syntax: 

  Overflow: visible | auto | hidden | scroll 

  Parameters: 

  Visible: Not content shear not add scrolling.    If the explicit statement that the default value, the targets will be cut to contain the object or window frame size.    And clip attribute settings Failure 
  Auto: This is the body textarea objects and the default value.    Shear when necessary and add the contents of the rolling 
  Hidden: Size does not show the contents of more than objects 
  Scroll: always show rolling, 

  Description: 

  When retrieved or set targets over the content of its width and height specified how to manage content. 
  Set targets for textarea hide their hidden values will be rolling. 
  For the table, if table-layout attribute set to fixed, td support object hidden with the default value for the overflow attribute.    If as a hidden, or auto scroll, then the content beyond td size will be cut.    If as a visible, the text will lead to additional overflow to the right or left (depending on direction attribute may be) cells. 
  Since IE5, this property available on the platform in the MAC. 
  Of the corresponding script for overflow. 
  Example: 

  Body (overflow: hidden;) 
  Div (overflow: scroll; height: 100px; width: 100px;) 

  Text-overflow version: IE6 + proprietary attribute inheritance: 

  Syntax: 

  Text-overflow: clip | ellipsis 

  Parameters: 

  Clip: do not show marked (…), but omitted simple Crop 
  Ellipsis: When the object of text overflow, indicate omitted markers Sort 

  Description: 

  Search settings or use of any markings Sort marked an omission in the text of the object overflow. 
  For the script of the corresponding textOverflow.    Please refer to my other programs to prepare. 

  Example: 

  Div (text-overflow: clip;) 

  Code: 
  <! DOCTYPE HTML PUBLIC "- / / W3C / / DTD HTML 4.01 Transitional / / EN" 
  "Http://www.w3.org/TR/html4/loose.dtd"> 
<html>
<head>
  <meta Http-equiv="Content-Type" content="text/html; charset=gb2312"> 
  <title> Untitled document </ title> 
  </ Head> 
<body>
  <table Width="100%" border="1" cellspacing="2" cellpadding="2" style="table-layout:fixed"> 
<tr>
  <td Width="10%"> s </ td> 
  <td> <div STYLE="width:60%; overflow:hidden;text-overflow:ellipsis"> <nobr> asdfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdata goes here </ nobr> </ div> </ td> 
  <td Width="30%"> </ td> 
  </ Tr> 
<tr>
  <td> D </ td> 
  <td> <div STYLE="width:60%; overflow:hidden;text-overflow:ellipsis"> <nobr> asdfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdata goes here </ nobr> </ div> </ td> 
  <td> </ Td> 
  </ Tr> 
  </ Table> 
  </ Body> 
  </ Html> 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • DZone

Tags: Text Alignment, Text Decoration, Text Indentation, Text Transformation

Releated Posts

  • Several basic CSS text filter effects
  • CSS design with high user experience web text size
  • CSS primary entry: text attributes
  • How to use PHP and CSS change the size of text on a Web page
  • CSS achieve text Shubai

This entry was posted on Saturday, February 9th, 2008 at 12:00 am and is filed under CSS Properties. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

« Html forms and the use of mixed CSS web design
Against various versions of the browser hidden skills of CSS IX »

Leave a Reply

  • Categories

    • CSS Properties (491)
    • CSS Tutorial (1154)
    • CSS Tutorial By Examples (1201)
    • Css+Div Web Design (3274)
    • Xhtml and Web Design (1797)
  • Archives

    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • March 2007
    • February 2007
    • January 2007
  • Pages

    • About us

Cascading Style Sheets Tutorial