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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:14:50+00:00 2026-06-08T08:14:50+00:00

I have a problem with 2 divs. Its a box with 100% width that

  • 0

I have a problem with 2 divs.

Its a box with 100% width that has 2 divs. Left one is a thumbnail image. Right one is description.

My problem is that when you resize your browser window, data description goes below thumbnail. I’ve added min-width with no results. Maybe I’m adding it in the wrong place.

Thanks a lot.

http://jsfiddle.net/NzX9e/

  • 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-08T08:14:52+00:00Added an answer on June 8, 2026 at 8:14 am

    Don’t mix % values with fixed widths if you want things to work properly as you scale your window. A div will naturally take all the space given it by the parent. So what you really need to do here is drop a lot of all the unnecessary styles and markup you have.

    For this specific case: http://jsfiddle.net/NzX9e/7/

    Basically, you float the div containing the img and remove all the other styles on the one beside it (I added some padding to it to give it a bit of breathing room next to the image).

    .docBox {
       border: solid 1px #006633;
       margin: 10px 0px 0px 10px;
       overflow: hidden;   <- this acts like a clear to keep the floated div in the parent
    }
    
    .previewImgBox {
       height: 70px;
       width: 50px;
       text-align: center;
       float: left;
    }
    
    .previewData {
        padding: 0 0 0 60px;
        'all the styles you had here are not needed and cause your problem'
    }
    

    I wasn’t about to go through and clean up all the markup and styles, just calling it out that you have a lot more than needed. Probably more than double for what you are trying to accomplish. Less is more. 🙂

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

Sidebar

Related Questions

I have two DIVs, first one has a link in it that contains the
I have two divs which should looks like one figure. The problem is with
I have a problem that I've replicated in various browsers. I have divs with
I have this content box on my site, that has different tabs on the
This is my problem, I have a div and inside 2 divs, one is
I have a table who's columns contain two inline divs, one displaying an image,
I have problem with http://abfoodpolicy.com/ . In IE 8 and 9 the right sidebar
I have problem with UIWebView delay when the load image from url. In my
http://img175.imageshack.us/img175/4295/tableissue.png http://img175.imageshack.us/img175/4295/tableissue.png Here's the picture to begin with. I have this check box, that
i have a problem about getting order of my divs. Scenario : i have

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.