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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:17:21+00:00 2026-06-01T10:17:21+00:00

This jsfiddle example shows what I’m talking about, I gave the div in question

  • 0

This jsfiddle example shows what I’m talking about, I gave the div in question a red border to show how it’s displayed.

I’d expect the #searchwrapper_3 div to go inside the #col_st_cautare one, but for some reason that’s not how it works. I’ve been staring at it for a while now and I got no idea why it’s showing like that

I also have an example of it looking ok simply because i’ve added another element after the #searchwrapper div here.

Issue’s fixed, TIL a div will collapse if it contains only floating elements.

  • 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-01T10:17:22+00:00Added an answer on June 1, 2026 at 10:17 am

    You need to do a clear:both; – see the end of http://jsfiddle.net/wzYry/3/

    <div style="border: 1px solid red;" id="col_st_cautare">
        <div style="float: left;" id="searchwrapper_3">
    
            .... code ....
    
        </div>
        <div style="clear:both;"></div>
    </div>​
    

    On a side note, it may be easier to make clr class in your styles.

    .clr{clear:both;}
    

    This way you can use this anytime you need to clear

    <div class='clr'></div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This example shows what I am trying to do: http://jsfiddle.net/Dqjvy/ I would like it
example: http://jsfiddle.net/kuTLf/ code looks like this: <div id=main> <div id=slideshow class=pics> <div id=nav></div> <img
I have this example http://jsfiddle.net/HnfCU/ I use jQuery to show and hide the .child
In this example, http://jsfiddle.net/mnXH9/ , the height of the content-display element and the height
This example working great because here containment is body http://jsfiddle.net/roXon/hMmbK/2/ when i use container
You can see the example here: http://jsfiddle.net/8EHED/8/ This is a tricky problem because I
Ok, I'm very simply trying to take this example... http://jsfiddle.net/shanabus/HGF59/ and put it on
This jsfiddle example is what i got right now, the principle works on a
http://jsfiddle.net/nicktheandroid/ppNaX/ This is somewhat theoretical. The menu shows/hides on mouseenter/mouseleave, with a toggle button
HTML and CSS boggle my mind sometimes. A DIV with a border shows its

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.