Styling the ul for a dropdown?

  • 0
    <ul class="dropdown-lang" >	
    <li class="lang-item lang-item-54 lang-item-ru lang-item-first"><a lang="ru-RU" hreflang="ru-RU" href="/">
    <img src="" title="RU" alt="RU" width="16" height="11" style="width: 16px; height: 11px;">
    <span style="margin-left:0.3em;">RU</span></a></li>
    
    <li class="lang-item lang-item-57 lang-item-en current-lang"><a lang="en-US" hreflang="en-US" href="/en/main/">
    <img src="" title="ENG" alt="ENG" width="16" height="11" style="width: 16px; height: 11px;">
    <span style="margin-left:0.3em;">ENG</span></a></li>
    </ul>


    There is an output of languages ​​on waterpress, it is displayed in the ul li format, a drop-down list is needed similar to select

    How can you set styles to have such a format.


    The selected language was highlighted and the option to select the second one.
    current-lang - the class of the selected language

    Can I solve with css? or do you need jquery?
    JavaScript Hunter Andrade, Apr 25, 2019

  • 1 Answers
  • 0
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!