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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:14:52+00:00 2026-06-02T19:14:52+00:00

I am designing a three column website and I want on the left column,

  • 0

I am designing a three column website and I want on the left column, the information of some specific persons to be displayed with their profile photo. For mean time, I am taking it in HTML, and I have designed successfully the code for left column.
Now I am trying to make a sub-division in the left column, each division reflecting the photo of the person with the name and account information.

#column_left{
   display: inline;
  float: left;
  margin-left: 5px;
}
 #col1 #sub-div{
  width:100%;
  margin:auto;
  border-top:1px #333 solid;
  border-bottom:1px #333 solid;
}
 #col1 #sub-div #div-img { float:left; display:inline; width: 40px; height: 40px;
   } 
 #col1 #sub-div #div-info { float:left; display:inline; width:auto; height:auto; padding: 2px; }

Now problem is that even the two divs (div-img and div-info) are under sub-div, so height of sub-div must change according to the height of its child divs. But unfortunately, child divs are aligned in the right order but parent div does not have any height unless in mention it in the css code of #sub-div.

Could anyone tell me why is the parent not inheriting the height of the child element?
am I wrong somewhere?

  • 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-02T19:14:53+00:00Added an answer on June 2, 2026 at 7:14 pm

    You need to clear your floats. Add this line to the bottom of your left div to see what I mean:

    <div style="clear: both"></div>
    

    To learn more about why floats need clearing, see this article. The answers to this question offers more clearing solutions.

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

Sidebar

Related Questions

I'm taking over development for a site that has three column layout - left
I'm designing a database with three tables: user, game and (probably) register. I want
I'm designing a staff rota planner....have three tables Staff (Staff details), Event (Event details),
I'm designing a Java application using SWT. I have some tables which will display
I am having alignment problems with a website I'm designing on IE6. It works
I'm designing my first good sized project and I want to be sure I'm
I'm designing a website in which you can upload games with a description, etc,
I'm designing a database that will be the backend for a marketplace website. There
I'm designing a MySQL table for an authentication system for a high-traffic personal website.
I'm designing the interface for an application to display some data pulled from a

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.