I am trying to change the appearance of a dropdown for phone number extensions on my website. Instead of all the text being unevenly spaced, it is spaced between the extension.
For example:
(+43) Austria
(+353) Ireland
(+1) United States
Would become:
(+43) Austria
(+353) Ireland
(+1) United States
I have tried simple whitespaces (as
) and trying to separate the (+XX) and country name apart in separate tags but to no avail.
The whitespaces have no effect and the
and spans just show up as their written code instead. Is there any way to format the dropdown to make this work? A sample of the HTML is below (the list of countries is extensive):
<select class="countryCodeForMobile valid" id="countryCodeForMobile" name="countryCode">
<option value="+61">(+61) Australia</option>
<option value="+43">(+43) Austria</option>
<option value="+32">(+32) Belgium</option>
<option value="+55">(+55) Brazil</option>
<option value="+1">(+1) Canada</option>
<option value="+33">(+33) France</option>
<option value="+49">(+49) Germany</option>
<option value="+353">(+353) Ireland</option>
<option value="+39">(+39) Italy</option>
<option value="+31">(+31) Netherlands </option>
<option value="+64">(+64) New Zealand</option>
<option value="+48">(+48) Poland</option>
<option value="+351">(+351) Portugal</option>
<option value="+27">(+27) South Africa</option>
<option value="+34">(+34) Spain</option>
<option value="+41">(+41) Switzerland</option>
<option selected="selected" value="+44">(+44) United Kingdom</option>
<option value="+1">(+1) United States</option>
</select>