Flags Do Not Align with Language Name
-
Good Day!
Upon switching our flags from 24px to 16px, I noticed the flags do not align (vertically) with the language name.
Details (16px flags with language name, native configuration): CLICK HERE
Details (24px flags with language name, native configuration): CLICK HERE
I researched this issue and concluded that, when using a language dropdown menu, your CSS code for the “Flags with language name” setting needs to be updated to show both the flag and its respective language vertically aligned (middle alignment) in the dropdown menu field. Also, the space between the flag and the language needs to be increased a bit.
In short, this is what worked for me: (I added the “style” code noted below next to each flag listed in the Widget code box for advanced users )
<img src="//www.mywebsite.com/wp-content/plugins/gtranslate/flags/svg/en-us.svg" height="16" width="16" style="vertical-align:middle;margin-right:.2em" alt="English" />
Result (after applying the above to our selected flags): CLICK HERE
The above, however, partially fixes the issue. The language name CSS (vertical alignment) also needs to be changed to “middle.” I did not know how to do this.
It would be great if you can fix this at your next convenient plugin revision.
Thank you!
- The topic ‘Flags Do Not Align with Language Name’ is closed to new replies.