Active
Project:
Language Icons
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 May 2012 at 20:26 UTC
Updated:
25 Dec 2014 at 08:17 UTC
Jump to comment: Most recent
I've got lots of languages on my site which results in the unfortunate behaviour you see in the attached file - in this case the Greek flag is on one line and the text on the next line.
"No problem!" I said. I changed to 'separator' => ' ' in line 18 of languageicons.module, which I would have thought should be patched for everyone. The weird thing is, it doesn't work. It creates the desired behaviour in the source code, i.e. <a ...><img .../> Greek</a>, however, the browser still breaks the line there - it doesn't obey my nbsp! (tried FF 12 and IE 8).
Does anyone know why that would be and how we could fix this?
Comments
Comment #1
johnvWhat happens if you add the following to your css?
white-space: nowrap;Comment #2
Nico_Drup commentedI had "quite" the same issue.
have some unwanted attributes for flag icons.
It seems to be a consequence of the main css from the theme you're using : the
Try to add this line to your css :
a img.language-icon { display:inline-block; white-space: nowrap;}That should do the trick...
Comment #3
darkdimHi!
I used this recipe http://drupal.stackexchange.com/questions/54281/different-sets-of-langua...