Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8881249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:18:23+00:00 2026-06-14T20:18:23+00:00

Using only CSS, I need to make the dark boxes (the links) line up

  • 0

Using only CSS, I need to make the dark boxes (the links) line up in one unbreaking line, and for the container (temporarily named div.hurrdurr) to have a horizontal scroll bar when the line of links gets longer than it. I also don’t want there to be any left over space when it’s scrolling. The links will be changed dynamically, so I can’t use a set width, as far as I know.

I only need this to work in the newest Firefox, as that’s the only thing I’ll be using to display the page.

This is what I have:

<!DOCTYPE html>
<html style="width: 1000px;">
    <head>
        <title>Hurrr</title>
        <style>
            div.contain {
                background-color: #999999;
                height: 90px;
                width: 100%;
            }
            div.hurrdurr {
                background-color: #CCCCCC;
                white-space: nowrap;
                width: 100%;
                overflow: auto;
            }
            div.hurrdurr a {
                width: 60px;
                height: 20px;
                margin-right: 8px;
                margin-top: 4px;
                background-color: #333333;
                color: #CCCCCC;
                text-align: center;

                float: left;
                display: inline-block;
            }
        </style>
    </head>
    <body>
        <div class="contain">
            <div class="hurrdurr">
                <a class="durr">1/25</a>
                <a class="durr">2/25</a>
                <a class="durr">3/25</a>
                <a class="durr">4/25</a>
                <a class="durr">5/25</a>
                <a class="durr">6/25</a>
                <a class="durr">7/25</a>
                <a class="durr">8/25</a>
                <a class="durr">9/25</a>
                <a class="durr">10/25</a>
                <a class="durr">11/25</a>
                <a class="durr">12/25</a>
                <a class="durr">13/25</a>
                <a class="durr">14/25</a>
                <a class="durr">15/25</a>
                <a class="durr">16/25</a>
                <a class="durr">17/25</a>
                <a class="durr">18/25</a>
                <a class="durr">19/25</a>
                <a class="durr">20/25</a>
                <a class="durr">21/25</a>
                <a class="durr">22/25</a>
                <a class="durr">23/25</a>
                <a class="durr">24/25</a>
                <a class="durr">25/25</a>
            </div>
        </div>
    </body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T20:18:24+00:00Added an answer on June 14, 2026 at 8:18 pm

    Remove your float:leftfrom your div.hurrdurr a and that should give you scrolling.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one page website only using HTML, CSS and JavaScript. I want to
How to make this css code cross browser compatible using jquery. this code only
I am styling an Input File type using only CSS, and it works on
Using css only, how can I override the css of only the 2nd column
I'm building my website using only html and css. I've read several tutorials and
Recently I've wanted to do a number of things using CSS only to find
How can I add a css file to only a child page while using
I have created tab style interface using css and javascript with only two tabs
i want to remove the link from my header using CSS so that only
I'm trying to minify multiple CSS files using preg_replace() . Actually, I'm only trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.