<div class="col-12 col-md-7">column md-7</div>
<div class="col-12 col-md-1">spacer md-1</div>
<div class="col-12 col-md-4">column md-4</div>
Recently, I took on a volunteering opportunity to revamp a webpage for an upcoming conference focusing on accessibility. To my surprise, the organizers had utilized a "drag and drop" page builder that lacked the functionality to edit subpages easily. One of the crucial changes required was to adjust the width of certain columns on the page to enhance readability. Particularly, the speaker bios in the md-4 column appeared too narrow.
https://i.sstatic.net/m4ETe.png
My task involved utilizing the "Add custom CSS functionality" to manipulate the column widths effectively. However, I encountered a challenge while attempting to increase the width of the third column exclusively using CSS.
.col-12.col-md-7 { max-width:30%; }
.col-12.col-md-4 { flex-grow:5 !important; }
.col-12.col-md-4 { max-width:70% !important; }
Although these CSS adjustments successfully expanded the third column on regular screens, the layout failed to adapt on mobile devices where the 30% width proved inadequate for the first column. This issue prompted me to seek advice on optimizing the column width adjustments across all screen sizes.