Home >Web Front-end >CSS Tutorial >How to use css overflow attribute

How to use css overflow attribute

silencement
silencementOriginal
2019-05-26 15:07:563864browse

How to use css overflow attribute

Definition and Usage

The overflow attribute specifies what happens when content overflows the element box.

Description

This attribute defines how content that overflows the content area of ​​the element will be handled. If the value is scroll, the user agent provides a scrolling mechanism whether required or not. Therefore, it is possible that scrollbars will appear even if everything fits inside the element box.

How to use css overflow attribute

Example

Set the overflow attribute:

How to use css overflow attribute

The above is the detailed content of How to use css overflow attribute. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn