CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2008
    Location
    Netherlands
    Posts
    865

    Content does not resize

    I have a master and content page.

    When I add some text to the content page in the maincontent, the content's height is as high as the text that is in it.

    But when I add a gridview to the maincontent, de content keeps the same size, with as consequence that the gridview is for more then 50% outside the content (and it's border), so this doesn't look really nice.

    Is there anyway to solve this?

  2. #2
    Join Date
    Oct 2007
    Location
    India
    Posts
    30

    Re: Content does not resize

    hav u tried running ur program..??


    i think u r facing this problem during design mode..

  3. #3
    Join Date
    Sep 2008
    Location
    Netherlands
    Posts
    865

    Re: Content does not resize

    The problem was not really the content, but the <div> the content was in. The content is placed is several DIV whicj had a background image, for making a nice border. To solve the problem I placed the content in a table and it works fine now..

    Code:
                        ......
                              <div class="topRight">
                                    <div class="bottomLeft">
                                        <div class="bottomRight">
                                            <table width="100%">
                                                <tbody>
                                                    <tr>
                                                        <td>
                                                            <div class="content">
                                                                    <div align="center">
                                                                        <asp:ContentPlaceHolder ID="mainContent" runat="server">
    
                                                                        </asp:ContentPlaceHolder>
                                                                    </div>
                                                              ......

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured