How to create div that can be dragged up to reveal content?

Content within a <div> overflows in the bottom only in Chrome. Any fix?

  • I have a parent container <div> and two sub <div>'s with CSS float: left; and float: right; respectively so they appear next to each other like columns. The content in the left <div> is longer than the one in the right <div>. The content in the left <div> overflows in the bottom only in Chrome. All other browsers easily measure the height and apply it properly. Is there any fix for this?

  • Answer:

    Are you really sure that your problem appears only in Google Chrome? Chrome and Apple Safari are using same engine (Webkit), so maybe you can check on the Safari browser to troubleshoot your problem. If you don't have Safari (such as using Windows workstation, or using a Linux), I hope your HTML and CSS file are accessible from the Internet, so you can use BrowserShots (http://www.browsershots.org/) to check the display on various browsers. First, try to apply 's answer. Set overflow: hidden. If that doesn't work, unset the overflow: hidden. I think it's time to troubleshoot manually. Almost all web designer know that Google Chrome has Developer tools. One of the tools is "Inspect Element", and it is enabled automatically. It's quite simple to use: right click on a <div> or any elements in your page and click Inspect Element. Now, apologize me that I can't give you exact answer to this problem as I don't know the real code, except you've uploaded it somewhere. So, I will only explain the troubleshooting process that I usually do. After right clicking on an element and clicking Inspect Element, you will see one of this two condition: A new dock appears in the bottom of your browser, like this: A new window appears, like this: But they exactly have two same panes in the left and right. So it must not appears as a problem to you. By default, the left pane will select the element that you selected before. The right pane will display all CSS attributes that have being applied to it. You can easily turn off some attributes. Now, you can test to turning off some attributes that you think related to the problem, such as the float, overflow, anything. I hope this solves your problem, and this method useful for your future troubleshooting process. But I am sorry if this doesn't solves your problem.

Muhammad Saiful Islam at Quora Visit the source

Was this solution helpful to you?

Other answers

Try setting overflow: hidden; for the parent div.

Mustapha Ben Chaaben

Maybe I'm reading it the wrong way but...Silly question, have you cleared those floats? I'm not CSS wiz but if both cols are block then they can both float left or both float right. I don't think that's the problem. But then again, I'm not Mr. CSS either.

Mark Simchock

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.