Hello everyone, this is my first time posting on stackoverflow. I have a question about centering the select options. Could someone please take a look at the image attached and let me know if it's possible?
<select multiple="multiple" name="keyword[]" id="edit-keyword" size="9" class="form-select" onchange="if(this.value != 0) { this.form.submit(); }">
<option class="filter-item br-8 f-14-med" type="submit" value="211">AI</option>
<option class="filter-item br-8 f-14-med" type="submit" value="176">Carbon Capture</option>
<option class="filter-item br-8 f-14-med" type="submit" value="186">Clean energy</option>
<option class="filter-item br-8 f-14-med" type="submit" value="196">COVID-19</option>
<option class="filter-item br-8 f-14-med" type="submit" value="216"&%gt;Digital Twins</option>
<option class="filter-item br-8 f-14-med" type="submit" value="201">Digitization</option>
<option class="filter-item br-8 f-14-med" type="submit" value="181">Energy Mix</option>
<option class="filter-item br-8 f-14-med" type="submit" value="26">Hydrogen</option>
<option class="filter-item br-8 f-14-med" type="submit" value="206">IoT</option>
<option class="filter-item br-8 f-14-med" type="submit" value="31" selected="selected">Keyword 2</option>
<option class="filter-item br-8 f-14-med" type="submit" value="226">LNG</option>
<option class="filter-item br-8 f-14-med" type="submit" value="191">Oil &Gas</option>
<option class="filter-item br-8 f-14-med" type="submit" value="221">Power Plant</option>
</select>
CSS:
.form-select {
display: inline-block;
/* display: flex; */
flex-wrap: wrap;
align-items: stretch;
overflow-y: unset;
}
.form-select option {
/* position: relative; */
float: left;
display: inline-flex;
/* width: calc(100%/10); */
}
Thank you in advance for your help!