Automatic hiding when CSS text overflows

Source: Internet
Author: User
Keywords Web page production CSS Tutorials
Tags automatic content css tutorial default default value html http objects

CSS Tutorial automatic hiding when text overflows

Syntax: overflow:visible | Auto | Hidden | Scroll

Visible:: Do not cut content nor add scroll bars. If you explicitly declare this default value, the object will be clipped to the size of the window or frame that contains the object. and the Clip property setting will fail.
Auto: This is the default value for the Body object and Textrea. Cut content and add scroll bars when needed
Hidden: does not display content that exceeds the size of the object.
Scroll: Scroll bars are always displayed.


body {Overflow:hidden;}
div {overflow:scroll; height:100px; width:100px;}

<!doctype HTML Public-//w3c//dtd XHTML 1.0 strict//en "HTTP://WWW.W3.ORG/TR/XHTML1/DTD/XHTML1-STRICT.DTD"
<html xmlns= ""
<meta http-equiv= "Content-type" content= "HTML; Charset=utf-8 "/>
<style type=" Text/css "
#yc {
Width : 180px;
<div id= "YC"
<table cellspacing= "0" cellpadding= "0"
<td> Professional div Tutorials Professional div Tutorials Professional div Tutorials </td>
<td> Professional div Tutorials Professional div Tutorials Professional div Tutorials </td>
<td> Professional Div Tutorials Professional div Tutorials Professional div Tutorials </td>
</ Html>

Related Article

Beyond APAC's No.1 Cloud

19.6% IaaS Market Share in Asia Pacific - Gartner IT Service report, 2018

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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: and provide relevant evidence. A staff member will contact you within 5 working days.