Title: Language Switcher CSS styling
Last modified: August 30, 2016

---

# Language Switcher CSS styling

 *  Resolved [mirilailai](https://wordpress.org/support/users/mirilailai/)
 * (@mirilailai)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/language-switcher-css-styling/)
 * Hi,
 * First of all – great plugin 🙂
    I’ve searched topics for a solution but couldn’t
   find any to work for me. I’m using the php code `<?php echo qtranxf_generateLanguageSelectCode(‘
   image’); ?>` to call the language switcher on the header. Now I’m trying to control
   the spacing.
 * I was playing for 4 hours with these lines:
 *     ```
       .qtranxs_language_chooser li { list-style:none; float:left; margin-left:0px; margin-right:0px;height:0px; }
       .qtranxs_language_chooser > .active > a {
           border-bottom: 2px solid #000000; }
       .qtranxs_language_chooser a { margin: 0 4px; padding: 0 4px 1px 4px; }
       ```
   
 * but nothing worked.
 * The only way I managed to edit the flags was with `.qtranxs_language_chooser 
   img` but still cannot fix the spacing between the flags. When I decrease the 
   margins the flags shrink but do not get closer to each other.
 * What I’m doing wrong? And also is there a way to style the Language Menu instead
   of the php snipper? 🙂
 * [https://wordpress.org/plugins/qtranslate-x/](https://wordpress.org/plugins/qtranslate-x/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Gunu](https://wordpress.org/support/users/grafcom/)
 * (@grafcom)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/language-switcher-css-styling/#post-6300554)
 * [@mirilailai](https://wordpress.org/support/users/mirilailai/)
 * > And also is there a way to style the Language Menu instead of the php snipper?
 * See here [Can I change the look of Language Switcher Menu?](https://qtranslatexteam.wordpress.com/faq/#LanguageSwitcherMenuConfig)
 * And see – Settings – Languages – Advanced – Head inline CSS

Viewing 1 replies (of 1 total)

The topic ‘Language Switcher CSS styling’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/qtranslate-x_f9f9f9.svg)
 * [qTranslate X](https://wordpress.org/plugins/qtranslate-x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/qtranslate-x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/qtranslate-x/)
 * [Active Topics](https://wordpress.org/support/plugin/qtranslate-x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/qtranslate-x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/qtranslate-x/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Gunu](https://wordpress.org/support/users/grafcom/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/language-switcher-css-styling/#post-6300554)
 * Status: resolved