CSS Overflow

CSS Overflow

CSS overflow is a property that controls how content overflows its container when it exceeds the available space. It is used to specify how the browser should handle the content that cannot fit within the specified dimensions of an element.

The overflow property can take several values:

  1. visible (default): Content is not clipped and may extend beyond the container’s boundaries.
  2. hidden: Content is clipped and anything that exceeds the dimensions of the container is hidden.
  3. scroll: Content is clipped, and a scrollbar is added to the container, allowing users to scroll and see the hidden content.
  4. auto: Similar to scroll, a scrollbar is added only if necessary. If the content fits within the container, no scrollbar is added.
  5. overlay: Content is clipped and a scrollbar is added only if necessary, but the scrollbar is overlaid on top of the content, instead of occupying space within the container.

Here’s an example of how you can use the overflow property:

css
.container {
  width: 300px;
  height: 200px;
  overflow: scroll;
}

In the example above, the container element has a fixed width and height of 300px and 200px, respectively. If the content inside the container exceeds these dimensions, a scrollbar will appear, allowing the user to scroll and see the hidden content.

By adjusting the overflow property, you can control how the content behaves when it exceeds the container’s boundaries, giving you options to hide, scroll, or overlay the overflowed content.

Leave a Reply

Your email address will not be published. Required fields are marked *

GLOTRU Footer
Popular Features
Popular Services/

Website Development & Design

App Development & Design

Graphic Design

Digital Marketing

SEO (Search Engine Optimization)

SMM (Social Media Marketing)

Cyber Security

Company

GLOTRU Founder & CEO : __Azam

Registared : Trade,MSME,etc

Board of Director

Team

About Us

Contact Us

Privacy Policy

Return & Refund Policy

Abuse Policy

Copyright Policy

Cookie Policy

Terms & Conditions

Universal Terms of Service

Disclaimer

Legal

Sponsorships

Investor

Press Releases

Our Investments

Brands

Newsroom

Business

...

_

Digital Millennium Copyright Act
DMCA.com Protection Status

_

Content similarity detection
Protected by Copyscape

_

***ANTI-PIRACY WARNING***

...................................................................................

Follow Us :

...................................................................................

SECURE SERVER : [Legal] [Privacy Policy] [Universal Terms of Service] [Do not sell my personal information]

SITE HOSTED : GLOTRU SECURE SERVER Asian Data Centre [You can host your site][Click Here]

SSL : Server Type : [Cloudflare] Certificate Issued By : [Let's Encrypt] Signature Algorithm : [ECDSA with SHA-384]

SITE BUILD SOFTWARE : Content Management System (CMS) Softwere

_

_

_