Brainerd scroller

3,165 Kb

How do I make an brainerd scroller?

Quick reminder on how to display a variable sized scroller / nav bar, which adapts to the size of the container when there are few items.. What is a brainerd scroller? How do you make a brainerd scroller? This script and codes were developed by António Capelo on 15 December 2022, Thursday.

Brainerd scroller Previews

Brainerd scroller - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Brainerd scroller</title> <link rel="stylesheet" href="css/style.css">
<body> <div class="container"> <div class="menu-container"> <ul class="menu"> <li><a class="selected "href="#">Yah, that's a good one </a></li></li> <li><a href="#">Yeah? </a></li></li> <li><a href="#">Yeah. </a></li></li><li><a href="#">You alright there, Margie? </a></li></li> <li><a href="#">Where's my daughter? </a></li></li> <li><a href="#">No Jean, no money! </a></li></li> <li><a href="#">Who's Jean?</a></li></li> <li><a href="#">Three-cent stamp. </a></li></li> </ul> </div> <div class="content"> <div class="titles"> <h1>Welcome</h1> <h2>to Brainerd</h2> <h3 class="click">Click to reduce the number of menu items</h3> </div> </div>
</div> <script src=''></script> <script src="js/index.js"></script>

Brainerd scroller - Script Codes CSS Codes

@import url(;
* { font-family: 'Lato', sans-serif;
.container { position: relative; border: 1px solid black; width: 400px; margin: 20px auto; height: 100%;
.menu-container { overflow-x: auto; display: block;
.menu a { display: block; padding: 10px; text-align: center; white-space: nowrap;
.menu { margin: 0; padding: 0; list-style-type: none; display: table; width: 100%;
.menu li { display: table-cell; color: white; text-align: center; border-right: 1px solid white;
.menu li:last-child { border: none;
.menu li:hover { background: violet;
a { text-decoration: none; color: white; background: #9F2125;
a.selected { background: white; color: black; font-weight: bold;
.menu-container { background: black;
html { padding: 0; margin: 0; height: 80%;
.content { width: 100%; position: absolute; bottom: 0; top: 40px;
h1 { font-size: 3rem; margin: 0;
h2 { width: 50%; font-size: 0.9rem; margin: 0 auto; color: black;
h3 { font-size: 0.6rem;
h3:hover { cursor: pointer;
h1 { color: #9F2125;
.titles { position: absolute; width: 100%; top: 50%; transform: translateY(-50%); text-align: center;

Brainerd scroller - Script Codes JS Codes

$('a').click(function(ev){ $('a').each(function(i, e) { $(this).removeClass('selected'); }); $(ev.currentTarget).addClass('selected');
$('.click').click(function(ev) { var as = $('.menu li'); as[as.length-1].remove();
Brainerd scroller - Script Codes
Brainerd scroller - Script Codes
Home Page Home
Developer António Capelo
Username capelo
Uploaded December 15, 2022
Rating 3
Size 3,165 Kb
Views 12,144
Do you need developer help for Brainerd scroller?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

António Capelo (capelo) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!