• Resolved JohnStaples

    (@johnstaples)


    I am trying to use “Nice dropdown with flags” with a shortcode, [gtranslate]

    How can I set the width, height and font size in CSS? I have tried a lot of things but it seems like there is a lot of inline code that is overriding what I’m trying to do.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    You can use !important in CSS rules to override anything.

    Modifying “Nice dropdown with flags” is not trivial, since it has many animation effects which require precise calculations. Changing width or font size can possibly break things.

    Thanks! ??

    Thread Starter JohnStaples

    (@johnstaples)

    Thank you but I already tried using !important to override; it appears that you are setting CSS dynamically in Javascript. Can you provide any working CSS that will override the width? I was able to change the width on line #102 of dwf.js but I do understand the issues that can arise when changing the plugin code directly. If there is a way using CSS I’d def prefer that!

    Thanks again and thank you for the cool plugin!

    Plugin Author edo888

    (@edo888)

    There is a Custom CSS section and you can override anything. If you post your website address, I’ll check the rules for you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Set Width of Dropdown?’ is closed to new replies.