About 296,000 results
Open links in new tab
  1. How To Create a Collapsible - W3Schools

    To make an animated collapsible, add max-height: 0, overflow: hidden and a transition for the max-height property, to the panel class. Then, use JavaScript to slide down the content by setting a calculated max-height , depending on the panel's height on different screen sizes:

  2. collapsable - Pure CSS collapse/expand div - Stack Overflow

    How to create a HTML div collapsible both horizontally and vertically with pure CSS/JavaScript, i.e. no jQuery, no Boostrap etc.?

    Missing:

    • Container

    Must include:

  3. Creating a collapsible section with nothing but HTML

    Dec 23, 2020 · In summary, you can use what browsers give you to create an expanding and collapsing section. It will be accessible for all users as its semantic HTML. It will be super quick to load as there is only HTML and a few lines of CSS. It will be responsive to any screen size. Happy building! What else would you like to see in this Web Dev series?

  4. Expand Collapse HTML DIV Using Pure CSS Only - Code Boxx

    Mar 27, 2023 · This tutorial will walk through how to expand and collapse an HTML DIV using pure CSS only. Free example code download included.

  5. How to create Expanding Cards using HTML, CSS and Javascript

    Apr 18, 2025 · Creating expanding cards using HTML, CSS, and JavaScript involves creating a set of cards that expand when clicked. The code starts by selecting all HTML elements with the class 'section' using the document.querySelectorAll('.section') method. This creates a NodeList containing all elements with the specified class.

  6. Expand and collapse div element | CodeMax

    Learn different techniques and examples for implementing expandable and collapsible div elements using HTML, CSS, and JavaScript.

  7. HTML Expand Collapse Text without JavaScript - Codeconvey

    Here is a step-by-step guide to create an accordion in HTML to expand collapse text without JavaScript. This CSS accordion toggle text using HTML input.

  8. css - Expand container div with content width - Stack Overflow

    Each child div has a known fixed width, but the application allows more of them to be inserted in the child_container div. What I'm trying to do is to have the container div expand horizontally when needed, given the total width of the child container. This is what happens currently:

  9. Creating expandable & collapsible panels in jQuery, CSS & HTML

    Jul 18, 2013 · A tutorial showing how to set up a set of expandable/collapsible panels (or an accordion effect) using jQuery, HTML and CSS. Includes demo and code.

  10. HTML and : Expandable Content for Interactive Web Pages

    Learn how to use the HTML <details> and <summary> tags to create expandable sections on your web pages. This guide covers practical use cases, styling with CSS, accessibility considerations, SEO impact, advantages, disadvantages, and multiple code examples.

  11. Some results have been removed
Refresh