DIV not expanding with ajax content. Please guide me

Discussion in 'CSS' started by raj61184, Jan 22, 2012.

  1. #1
    Hi

    I have the following div : containerResult

    <div class="containerResult">

    <div align="center">
    <div id="homeContent" name="homeContent">
    <div id="introduction" class="introduction"><strong>.....</strong></div>
    <div id="fontDroid" class="fontDroid">......</div>
    </div>
    </div>

    <div id="ajaxDivUp1" style="display:none;"></div>
    <div id="ajaxDivUp2" style="display:none;"></div>
    <div id="progressbar" align="center" name="progressbar" style="display:none;"><img src="ajax-loader.gif" /></div>

    <div class="clear"></div>

    </div>

    This is the css for div - containerResult



    .containerResult{
    margin-top:20px;

    background:#FFFFFF;
    border:1px solid #E0E0E0;
    padding:15px;

    bottom:50px;
    overflow:hidden;


    /* Rounded corners */
    -moz-border-radius:20px;
    -khtml-border-radius: 20px;
    -webkit-border-radius: 20px;
    border-radius:20px;
    }


    when the table in the following div's is updated via ajax the size(height) of the containerResult is not increased and these 2 div's spill-out of the containerResult div


    <div id="ajaxDivUp1" style="display:none;"></div>
    <div id="ajaxDivUp2" style="display:none;"></div>


    Please help me to fix it
     
    raj61184, Jan 22, 2012 IP
  2. wiicker95

    wiicker95 Well-Known Member

    Messages:
    438
    Likes Received:
    37
    Best Answers:
    10
    Trophy Points:
    100
    #2
    What do you actually want to position, align, move?? It's not really understandable what you want to do here. And what genious told you divs have name attributes??? :confused:
     
    wiicker95, Jan 22, 2012 IP
  3. raj61184

    raj61184 Member

    Messages:
    416
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    45
    #3
    Thanks for your reply. I am new to css and website development, I wanted my main div containerResult to expand in height when results from ajaxDivUp1,ajaxDivUp2 are updated
     
    raj61184, Jan 22, 2012 IP
  4. wiicker95

    wiicker95 Well-Known Member

    Messages:
    438
    Likes Received:
    37
    Best Answers:
    10
    Trophy Points:
    100
    #4
    bottom:50px; is not going to help at all. You can define the height of the your wrap section (height: 100%; ) and make the inside divs relative.
    And I ask once again, why do you assign names to your divs?
     
    wiicker95, Jan 22, 2012 IP
  5. raj61184

    raj61184 Member

    Messages:
    416
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    45
    #5
    I did height 100% but it didnt work ... and as I said I dont know much about css I am trying out things ...will remove it
     
    raj61184, Jan 22, 2012 IP
  6. wiicker95

    wiicker95 Well-Known Member

    Messages:
    438
    Likes Received:
    37
    Best Answers:
    10
    Trophy Points:
    100
    #6
    Well, I'm afraid I won't be able to help if you don't show us the whole demon or something.
     
    wiicker95, Jan 22, 2012 IP