Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Honestly, these days you'd be better off learning Tailwind CSS[1]. I previously used Bootstrap, but Tailwind CSS is so much nicer.
I prefer Tailwind CSS over Bootstrap because it is a utility-first framework, allowing me to style elements directly with low-level utility classes, rather than relying on the predefined styles and components of the framework.
The Tailwind folks have done a good job making it highly customisable. Ultimately, it comes down to personal preference and needs.
[1] https://tailwindcss.com/
https://daisyui.com/
As for OP's question, just play with it! Futz with different classes and see what happens! A structured approach I don't think will work terribly well.