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 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:
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
You will get an email the morning after we post a new Code Snippet
“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 MoreWordPress, 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 MoreThe WordPress Theme Review Team Website (This post was viewed 65 times) in the last month.)
Read MoreOnly 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 MoreAbbott: 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
Reader Interactions