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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:37:19+00:00 2026-06-17T03:37:19+00:00

I have a problem with div floating , I have used two DIVs that

  • 0

I have a problem with div floating ,

I have used two DIVs that float left , but if div 2 has large text , it loads under div one , how can I prevent this , I want two divs load inline . I have used inline-block but not worked .

http://jsfiddle.net/pS6Gg/

<div style="width: 100%;overflow:hidden;">
 <div style="float: left;width:">Left Stuff</div>
 <div style="float: left;margin-left:10px;">    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
 <br style="clear: left;" />
</div>

thanks

  • 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-17T03:37:20+00:00Added an answer on June 17, 2026 at 3:37 am

    Will http://jsfiddle.net/pS6Gg/4/ or http://jsfiddle.net/pS6Gg/5/ do it?

    The first possibility lets the second div flow around the first,

    <div style="float: left; width: 50px;">Left Stuff</div>
    <div style="margin-left:10px;">... text ...</div>
    

    and the second creates a column effect by defining the first div’s width and and giving the parent div a defined height for the children to fill.

    <div style="width: 100%;overflow:hidden; height:200px;">              <-- parent height 
    <div style="float: left; width: 50px; height:100%;">Left Stuff</div>
    <div style="margin-left:10px; height:100%;"> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have problem with image vertical-align in div .img_thumb { float: left; height: 120px;
I have two floating divs, each is 50% wide, the problem I have is
I have a div that contains inside 3 'floated' divs. The containing div has
I have a wrapper <div> which contains two inner <div> s that are floating.
I have 6 floating divs (align to left) on a page. These divs has
A common problem that I have with web pages is floating div tags creeping
I have a div with <img> and <a> in it. But I have problem
I have 3 inner divs all floating left. They are wrrapped in a parent
I have problem with floating in IE6. The HTML code: <div id=stran> <img src=../Slike/prejsnja.png
I am dynamically parsing DIVs which are floating left to each other in two

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.