https://i.sstatic.net/1nHlm.pngI am new to coding and exploring html, css, and bootstrap. Is it possible to assign varying numbers of columns to a div based on different resolution ranges for larger devices?
Specifically looking at the "lg" range which covers laptops and desktops with screens that are equal to or greater than 1200px wide.
Is there a way to assign different column numbers for widths between 1200-1300px and 1300px-1400px?
Take a look at this image below for reference. The desired UI layout features a form on the left side with four columns - where the 1st and 3rd columns contain labels, and the 2nd and 4th columns contain input controls. Each of these columns is currently assigned "col-lg-3". However, when the width is around 1250px, the form looks fine but requires 6 columns, making some content invisible without a horizontal scrollbar.
On the other hand, if the resolution is approximately 1400px, there is too much space between labels and controls within the form, leaving excess empty space. I am seeking a solution to dynamically adjust the number of columns based on resolution settings.