How to Use Absolute Positioning in ASP.NET Controls
The "position" property in CSS provides you with the ability to create an HTML layout. You can also use the CSS property in your ASP.NET tags. ASP Web applications have code used in the background processes, but the front-end files use regular CSS and HTML properties. You may add the position property and set the value to "absolute" in your ASP.NET controls to create the front-end layout.
Instructions
-
-
1
Launch "Visual Studio" to open your software. Open the ASP.NET Web project. After the project loads, double-click the Web form in Solution Explorer to view the form in the VS designer.
-
2
Right-click the ASP control that you want to position and select "View Code." The designer opens the HTML code for the control.
-
-
3
Add the following code to your ASP.NET control's HTML code:
style="position: absolute;"
-
4
Click the "Save" button in the toolbar, then click "Run" to execute the code in a browser. The browser displays the newly designed layout for the ASP controls.
-
1