CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Threaded View

  1. #1
    Join Date
    Jan 2010
    Posts
    130

    [RESOLVED] Button wont stay in fixed position!

    Sorry for spamming the boards but I have another stupid question that I spent ages trying to answer :P

    I created two tables in ASP.NET with the lower one containing a submit button. In the higher one I programmatically add labels. The number of labels added depends on which radiobutton was selected earlier. In scenario 1 (check attachment 1) where one label appears the submit button is in the correct position. However when another label is added (attachment 2) then the button moves upwards!

    This is the relevant section from my ASP.NET page:

    Code:
    Bitte Wählen Sie einen Beurteilungsbogen aus. <br />    
        &nbsp; <br />
        
        <p>
        <asp:Table ID="tblReportSelection" runat="server" CssClass="tblReportSelection">
        </asp:Table>
        </p>
        
        <p>
        &nbsp;
        </p>
        
        <p>
        &nbsp;
        </p>
    
        <p>
        <div class="tblSubmitSelection">
            <asp:Button ID="btnReportSelection" runat="server" Text="Auswahl" OnClick="BtnReportSelection_Click" />
        </div>
        </p>
    Here is the relevant section from my stylesheet
    Code:
    .tblReportSelection {
    	float: left;
    	border: solid 1px #373188;
    	padding: 5px;
    	padding-right: 20px;
    	text-align: left;
    }
    .tblSubmitSelection {
    	float: left;
    }
    Attached Images Attached Images   

Tags for this Thread

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