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 6143747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:33:37+00:00 2026-05-23T18:33:37+00:00

I have a div with an unordered list that has a border around it.

  • 0

I have a div with an unordered list that has a border around it. When I set the text inside it to float left it collapses the div and the border squashes upward.

Not sure why this is happening.

http://jsfiddle.net/chapster11/jSvdW/

Updated: I just want to first say thanks to everyone for their response and it helped me understand this question in a better light. I found a link that I think might benefit someone who runs into this issue, which explains both the overflow:hidden and clear float technique, in a very simplified manner. It also covers floats in detail.
http://css-tricks.com/795-all-about-floats/

  • 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-23T18:33:38+00:00Added an answer on May 23, 2026 at 6:33 pm

    Change

    .support .hnav li {
       display: inline-block;  //from inline 
    }
    

    http://jsfiddle.net/jasongennaro/jSvdW/1/

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

Sidebar

Related Questions

I have a div with an unordered list inside that slides left when you
I basically have a fixed width DIV with an unordered list inside that overflows
I have a div with two nested divs inside, the (float:left) one is the
I have an unordered list of images that display inline and float next to
I have unordered list inside a div. I use it to create buttons in
I have several div 's that contain a floated image and an unordered list.
I have an unordered list that contains links. Some of the links are text
I have a DIV that contains an unordered list. I want to make a
I have a Div with five float divs inside: var div=document.createElement(div); div.className=cssDivNino; var divFolio=document.createElement(div);
I have an unordered list and each of the item in the ul has

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.