I have limited experience with HTML, but I need to layout a form in a precise manner similar to WinForms. Here is my attempt using the little CSS and HTML knowledge I possess:
The issue lies in everything inside the white area being ABSOLUTELY LAID OUT ... so every time new content is added, surrounding elements must be adjusted accordingly. Additionally, as the checkboxlist contents are dynamically filled from ASP.NET code-behind, the number of items may vary, causing the white box to sometimes be too short... This is currently fixed by MANUALLY adjusting the height in CSS, which is not ideal.
Could you please advise on the correct approach to address this?
CSS :
...
HTML :
...
UPDATE 1:
Removing the "height: 2000px;" and changing it to "auto" for the whitebox resulted in some controls at the bottom getting pushed out of the white box: