Top Language Switch (CSS example for you)
-
For the ones interested, here’s how I I played with CSS to create my Top Language Switch (Screenshot here)
div.top-lang-switch, div.top-menu-switch { padding: 0px !important; border: 0px solid #FFFFFF; text-align: right; } div.top-lang-switch ul, div.top-menu-switch ul { padding: 0px !important; margin-top: 0px; } div.top-lang-switch ul li, div.top-menu-switch ul li { float: right; margin: 0px 0px 0px 1px; border: 0px solid; text-align: center; } div.top-lang-switch ul li a, div.top-menu-switch ul li a { color: #FFFFFF !important; background-color: #8c8c8c; font-size: 15px; font-weight: 600; text-transform: uppercase; padding: 35px 7px 7px 7px; margin: 0px 0px 0px 0px; } html[lang="fr-FR"] div.top-menu-switch ul li#menu-item-language-fr a span, html[lang="en-US"] div.top-menu-switch ul li#menu-item-language-en a span{ width: 35px !important; min-width: 35px !important; } div.top-lang-switch ul li.active a, html[lang="fr-FR"] div.top-menu-switch ul li#menu-item-language-fr a, html[lang="en-US"] div.top-menu-switch ul li#menu-item-language-en a { color: #FFFFFF; border-bottom: 5px solid #FFFFFF; } div.top-menu-switch ul li#menu-item-71 a { background-color: transparent !important; font-size: 0px; } div.top-menu-switch ul li#menu-item-71 a::before { font-family: FontAwesome !important; content: "\f090"; margin-right: 5px; font-size: 18px; } div.top-menu-switch ul li#menu-item-72 a { background-color: transparent !important; font-size: 0px; } div.top-menu-switch ul li#menu-item-72 a::before { font-family: FontAwesome !important; content: "\f08b"; margin-right: 5px; font-size: 18px; } html[lang="fr-FR"] div.top-menu-switch ul li#menu-item-language-fr a { background-color: #0099cc; } html[lang="en-US"] div.top-menu-switch ul li#menu-item-language-en a { background-color: #ff0000; }
If this may be of some help to some of you…?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Top Language Switch (CSS example for you)’ is closed to new replies.