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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:40:01+00:00 2026-06-06T03:40:01+00:00

I have a div with following CSS: div { width:600px; height:auto; } Now my

  • 0

I have a div with following CSS:

           div
           {
              width:600px;
              height:auto;
           }

Now my problem is when i append any element (like $('div').append(any element)) in this div its height is not increasing accordingly. Whats the problem?

EDIT

The element which i am appending has height:auto. And the div in which i am appending has empty.

  • 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-06T03:40:02+00:00Added an answer on June 6, 2026 at 3:40 am

    There is no problem with that code. The auto value is the default for a div, so (assuming that there is no other style applying to the element) it’s the same as just:

    div { width: 600px; }
    

    So, there is nothing that is limiting the height of the div in that code. You have to look elsewhere in your code to find something that affects the element.

    Some browsers let you inspect an element, which shows you exactly what CSS applies to it. I use the Firebug plugin in Firefox for this.

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

Sidebar

Related Questions

I have the following CSS for a div element: .tooltip { padding: .8em; width:
I have a DIV with the following css .divTab { width: 700px; height: 550px;
I have the following html divs : ... <body> <div id=barChart_div style=width: 600px; height:
I have a container div with the following CSS: #container { position:relative; overflow:hidden; width:200px;
I have the following css: .horizontal-holder1{ float:left; width:88px; height:98px; margin-bottom:15px; border:1px solid #bdbdbd; background-color:grey;
I have three divs with the following css: div#container { width: 780px; } div#photos
Suppose I have the following CSS snippet: div { width: 200px; padding: 10px; border-width:
I have the following css code .container { width:800px; background-color:yellow; margin:auto; display:table; } .cell
I have the following CSS: div#topWrap div#advancedSearchWrap { width:738px; border:solid 1px #dadada; background-color:#fffcd9; margin-top:4px;
I have a div that has the following css: position: fixed; height: 100%; left:

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.