Create a Scrolling Column with trivial CSS

Code Snippet Related Categories

Reason for needing the Code Snippet

The client wanted to display a list of past events in a scrollable column. This was easy to implement using simple css. The page layout was done with Beaver Builder, but the solution should work for any html container.

(This post was viewed 785 times) in the last month.)

What the Code Snippet does

This css allows the content in one column in a row scroll if it is longer than the height of the column.

Here's the result:

 

Here's the Code Snippet

overflow-x:scroll;

Make a column, in this case using Beaver Builder and give it an ID to target a CSS selector (in this example it's highlights-scroll). Then add the following CSS to add scroll bars so the content will scroll in the x direction (up and down):

.highlights-scroll .fl-col-content {
max-height:64vh; overflow-x: scroll;
padding-right: 30px;
}

 

Limit search for phrases by using " " around the phrase

Subscribe to Code Snippet updates

You will get an email the morning after we post a new Code Snippet

Something went wrong. Please check your entries and try again.

Other Recent Code Snippets

Post Format: Aside

Posted in

“I never tried to prove nothing, just wanted to give a good show. My life has always been my music, it’s always come first, but the music ain’t worth nothing if you can’t lay it on the public. The main thing is to live for that audience, ’cause what you’re […]

Read More

Post Format: Status

Posted in

WordPress, how do I love thee? Let me count the ways (in 140 characters or less). (This post was viewed 76 times) in the last month.)

Read More

Post Format: Link

Posted in

The WordPress Theme Review Team Website (This post was viewed 65 times) in the last month.)

Read More

Post Format: Quote

Posted in

Only one thing is impossible for God: To find any sense in any copyright law on the planet. Mark Twain (This post was viewed 61 times) in the last month.)

Read More

Post Format: Chat

Posted in

Abbott: Strange as it may seem, they give ball players nowadays very peculiar names. Costello: Funny names? Abbott: Nicknames, nicknames. Now, on the St. Louis team we have Who’s on first, What’s on second, I Don’t Know is on third– Costello: That’s what I want to find out. I want […]

Read More

Popular Posts


Pieter Hartsook

WordPress website coaching, design, implementation, support, and training. Background in Marketing Research and Communications. See my profile at: https://www.linkedin.com/in/hartsook/

Reader Interactions

Leave a Reply

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

Skip to content