CSS Stockを表示するスマートフォンのモック
デザインの例1デザインの例2デザインの例3

8 accordion menus created using only HTML/CSS

An accordion menu is recommended for situations such as "wanting to open/close when the user clicks" or "creating a Q&A list." This time, we have compiled design snippets for such an accordion. Everything introduced on this site uses the details tag, which is a great feature because it lets search engines know that the content is collapsible.

Simple accordion

With underline

With underline

  1. Design Adjustment
  2. Copy HTML
  3. Copy CSS
  4. Completion
step1

Adjust design

  • Icon type
With border

With border

  1. Design Adjustment
  2. Copy HTML
  3. Copy CSS
  4. Completion
step1

Adjust design

  • Shape
  • Icon type
With background color

With background color

  1. Design Adjustment
  2. Copy HTML
  3. Copy CSS
  4. Completion
step1

Adjust design

  • Shape
  • Icon type
White background & shadow

White background & shadow

  1. Design Adjustment
  2. Copy HTML
  3. Copy CSS
  4. Completion
step1

Adjust design

  • Shape
  • Icon type

Pretty accordion

Monochromatic background

Monochromatic background

  1. Design Adjustment
  2. Copy HTML
  3. Copy CSS
  4. Completion
step1

Adjust design

  • Shape
  • Icon type
With border

With border

  1. Design Adjustment
  2. Copy HTML
  3. Copy CSS
  4. Completion
step1

Adjust design

  • Shape
  • Icon type
With background & like speech bubble

With background & like speech bubble

  1. Design Adjustment
  2. Copy HTML
  3. Copy CSS
  4. Completion
step1

Adjust design

  • Shape
  • Icon type
Like heading

Like heading

  1. Design Adjustment
  2. Copy HTML
  3. Copy CSS
  4. Completion
step1

Adjust design

  • Icon type