VOOZH about

URL: https://www.geeksforgeeks.org/css/how-to-create-horizontal-scrollable-sections-using-css/

⇱ How to create horizontal scrollable sections using CSS ? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to create horizontal scrollable sections using CSS ?

Last Updated : 23 Jul, 2025

In this article, we will see how we can create a horizontal scrollable section using CSS. We are going to make different sections and make them horizontally scrollable using CSS. HTML code is used to create the basic structure of the sections and CSS code is used to set the style.

HTML Code: In this section, we will create a structure for our sections. 

Steps:

  • Create a div element with class content.
  • Inside our content div create another four div with class section.
  • Give four different ids to each div.
  • In each div include a heading tag with the appropriate heading.

Example: Here we are implementing the above-explained approach.

CSS: We will use CSS to give our section some structure.

Complete Code:

Output:

👁 Image

Comment