Hi @Peter_1985 ,
You only need to place all the text boxes and buttons in the div. Regarding the div is located in the center of the page, you can use css, you can refer to the following code.
<body>
<form id="form1" runat="server">
<div class="centered">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" />
</div>
</form>
</body>
</html>
<style>
.centered {
position: absolute;
margin: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 300px;
height: 300px;
text-align: center;
background-color: blue;
}
</style>
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.