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

  • Home
  • SEARCH
  • 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 6535071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:19:43+00:00 2026-05-25T10:19:43+00:00

The links don’t change the holder height at all, really I don’t know what

  • 0

The links don’t change the “holder” height at all, really I don’t know what is wrong

HTML:

<div id="holder">
<a class="button" href="#"><span>home</span></a>
<a class="button" href="#"><span>example</span></a>
<a class="button" href="#"><span>another examp.</span></a>
<a class="button" href="#"><span>hello</span></a>
<a class="button" href="#"><span>abc</span></a>
</div>

CSS:

*{
margin:0;
padding:0;
}
#holder{
width:100%;
background: #000;
border: 1px solid red;
}
.button {
    color: #444;
    display: block;
    float: left;
    height: 24px;
    margin-right: 6px;
    padding-right: 18px;
}
.button span {
    display: block;
    line-height: 14px;
    padding: 5px 0 5px 18px;
}
.button:hover {
    background: #333 url('./images/bg_button_a.jpg') no-repeat scroll top right;
    outline: none;
}

.button:hover span {
    background: #333 url('./images/bg_button_span.jpg') no-repeat;
}
  • 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-05-25T10:19:44+00:00Added an answer on May 25, 2026 at 10:19 am

    Elements do not automatically expand to contain floated descendents.

    Adding overflow: hidden is one type of clearfix and so long as you don’t mind elements being clipped at the element’s bounding box, the easiest.

    #holder {
       overflow: hidden;
    }
    

    Further Reading.

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

Sidebar

Related Questions

Hey all - I don't know why my rollover links don't work now. I
I have written a class using std::tr1::regex, and I don't know how to link
If I don't use a rewrite in my CouchDB app, my static file links
I have a Facebook like that links to a page on witch I don't
Is this faster: $(document.links).filter('a.someClass') than just plain old this: $('a.someClass') ? I don't see
My tree menu is in an unordered list. The links in it however don't
i don't know good title but heres the explain i have this link <a
I have a couple of images links that don't have any images yet but
I found this code on here from this post: jQuery Accordion: links don't work
I started learning html recently, and one thing that really confused me is why

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.