Title: display:inline doesn&#039;t work
Last modified: August 31, 2016

---

# display:inline doesn't work

 *  Resolved [Andreashej](https://wordpress.org/support/users/andreashej/)
 * (@andreashej)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/displayinline-doesnt-work/)
 * Hi,
 * I have a problem using Polylang. I want to show the flags in the language changer
   next to each other, and I have inserted the following code where I want it to
   be:
    `if(function_exists('pll_the_languages') && $side == 'right') ?> <ul style
   ="float:left; margin-right: 5px; margin-top: 15px; display: inline;"> <?php pll_the_languages(
   array('show_flags'=>1,'show_names'=>0, 'hide_if_no_translation'=>1, )); ?></ul
   > <?php`
 * However, the flags are showing up on top of each other, and I want them next 
   to each other. I have seen suggestions that the plugin should add .lang-item 
   to style.css, and display:inline should do the trick. However, the plugin has
   not added that part, and if I add it manually, it doesn’t affect the display 
   whatsoever.
 * What should I do?
 * [https://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [Chrystl](https://wordpress.org/support/users/chrystl/)
 * (@chrystl)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/displayinline-doesnt-work/#post-7161584)
 * Hi
 * >  I have seen suggestions that the plugin should add .lang-item to style.css,
   > and display:inline should do the trick.
 * It’s not possible since the CSS rules depend on the theme. Polylang doesn’t act
   on the CSS.
 *  Thread Starter [Andreashej](https://wordpress.org/support/users/andreashej/)
 * (@andreashej)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/displayinline-doesnt-work/#post-7161598)
 * Okay, but even if I add it to the CSS file, the flag list is not affected by 
   it.
 *  [Česlav Przywara](https://wordpress.org/support/users/chesio/)
 * (@chesio)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/displayinline-doesnt-work/#post-7161733)
 * Hi Andreashej,
 * The code you pasted here will not work, because you’re applying “display: inline”
   to `<ul>` element (ie. the list), not to list items (ie. `<li>` elements).
 * Try to add the following snippet to your CSS:
 *     ```
       li.lang-item { display: inline; }
       ```
   
 * If it doesn’t work, probably your theme has its own styles for menu items with
   higher precedence.
 * Greets,
    Česlav
 *  Thread Starter [Andreashej](https://wordpress.org/support/users/andreashej/)
 * (@andreashej)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/displayinline-doesnt-work/#post-7161736)
 * You are of cause right – that worked, thanks 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘display:inline doesn't work’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Andreashej](https://wordpress.org/support/users/andreashej/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/displayinline-doesnt-work/#post-7161736)
 * Status: resolved