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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:35:02+00:00 2026-05-27T04:35:02+00:00

You can see the fiddle here: http://jsfiddle.net/easeS/4/ Here is the html/css I have: #main

  • 0

You can see the fiddle here: http://jsfiddle.net/easeS/4/

Here is the html/css I have:

#main div
{
 float:left;
 width:30px;
 margin-right:10px;   
}
#main
{
 overflow:hidden;
    width:100px;
    height:50px;
    border:1px solid;
}

<div id="main">
    <div>test1</div>
    <div>test2</div>
    <div>test3</div>
</div>

I’m not sure why but it bumps the third div down to a new line instead of hiding it. Any suggestions?

  • 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-27T04:35:02+00:00Added an answer on May 27, 2026 at 4:35 am

    The 3rd div bumps down because there’s not enough space for it to float.
    Your 3 divs added up together (inc. margin) is equals to 120px;
    The wrapper (#main) is 100px.
    Therefore bumping the 3rd div down.

    If I understood your question correctly…
    What you want to do is hide it the 3rd div, for you to do this, you’d need to:
    Add another wrapper div and give it a bigger width. Have a look at my example here

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

Sidebar

Related Questions

you can see my jsFiddle here http://jsfiddle.net/fcZQV/ where I posted the HTML and CSS
I got a CSS question related to this fiddle: http://jsfiddle.net/r584e/ Here the relevant screenshot
As you can see in the following Fiddle: http://jsfiddle.net/EvWc4/3/ , I'm currently searching a
Fiddle demo available here: http://jsfiddle.net/r9MCW/5/ The functionality Basically, I have a very simple table
Here is an example of what I mean: JS Fiddle: http://jsfiddle.net/MWAJC/ As you can
Here's my current fiddle: http://jsfiddle.net/UjAQf/79/ My target table design is this: But I'm having
Here's my fiddle: http://jsfiddle.net/6yU6N/ Here's a mockup of what I want to accomplish: As
Have a look at this fiddle: http://jsfiddle.net/h4VS7/ How do I make the yellow element
I'm struggling with an anchor (specifically a:hover) tag in CSS. Here's my JSFiddle: http://jsfiddle.net/yXwng/
I think an image best describes this: JS FIDDLE HERE: http://jsfiddle.net/fp2Ak/ What I want

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.