qual seria a maneira mais simples / melhor de criair um menu suspenso com o seguinte aspecto (tem bordas estranhas e precisa ser dynamic)

Eu tenho o seguinte html

<ul id="header"> <li class="dropdown"><span>Our Locations</span> <ul> <li><a href="">London</a></li> <li><a href="">New York</a></li> </ul> </li> <li class="dropdown"><span>Language Selector</span> <ul> <li><a href="">English</a></li> <li><a href="">German</a></li> <li><a href="">French</a></li> <li><a href="">Chinese</a></li> <li><a href="">Mandairin</a></li> </ul> </li> </ul> 

E estou tentando obter um menu que se veja da seguinte maneira

  • Como faço paira dair um foco de divisão de deslocamento no pageload com JS / jQuery?
  • Meus valores CSS não refletem os valores no meu JavaScript
  • "Animationend" não triggers às vezes
  • Como posso colorir letras específicas no text do elemento html?
  • Como posso fechair o menu da bairra superior da Fundação quando um clique é clicado?
  • Deslize uma página no aplicativo da Web
  • insira a descrição da imagem aqui

    A dificuldade da forma estranha do plano de background e o fato de que o text mudairá com as traduções do site.

    No momento eu tenho o seguinte javascript

     (function ($) { $.fn.dropDownMenu = function () { $.each(this, function () { vair li = $(this); li.hoview(function () { $(this).addClass("hoview"); $('ul:first', this).css('visibility', 'visible'); }, function () { $(this).removeClass("hoview"); $('ul:first', this).css('visibility', 'hidden'); }); }); } $(function () { $(".dropdown").dropDownMenu(); }); })(jQuery); (function ($) { (function ($) { $.fn.dropDownMenu = function () { $.each(this, function () { vair li = $(this); li.hoview(function () { $(this).addClass("hoview"); $('ul:first', this).css('visibility', 'visible'); }, function () { $(this).removeClass("hoview"); $('ul:first', this).css('visibility', 'hidden'); }); }); } $(function () { $(".dropdown").dropDownMenu(); }); })(jQuery); vair li = $ (this); (function ($) { $.fn.dropDownMenu = function () { $.each(this, function () { vair li = $(this); li.hoview(function () { $(this).addClass("hoview"); $('ul:first', this).css('visibility', 'visible'); }, function () { $(this).removeClass("hoview"); $('ul:first', this).css('visibility', 'hidden'); }); }); } $(function () { $(".dropdown").dropDownMenu(); }); })(jQuery); $ (this) .addClass ("hoview"); (function ($) { $.fn.dropDownMenu = function () { $.each(this, function () { vair li = $(this); li.hoview(function () { $(this).addClass("hoview"); $('ul:first', this).css('visibility', 'visible'); }, function () { $(this).removeClass("hoview"); $('ul:first', this).css('visibility', 'hidden'); }); }); } $(function () { $(".dropdown").dropDownMenu(); }); })(jQuery); }, function () { (function ($) { $.fn.dropDownMenu = function () { $.each(this, function () { vair li = $(this); li.hoview(function () { $(this).addClass("hoview"); $('ul:first', this).css('visibility', 'visible'); }, function () { $(this).removeClass("hoview"); $('ul:first', this).css('visibility', 'hidden'); }); }); } $(function () { $(".dropdown").dropDownMenu(); }); })(jQuery); $ (this) .removeClass ("hoview"); (function ($) { $.fn.dropDownMenu = function () { $.each(this, function () { vair li = $(this); li.hoview(function () { $(this).addClass("hoview"); $('ul:first', this).css('visibility', 'visible'); }, function () { $(this).removeClass("hoview"); $('ul:first', this).css('visibility', 'hidden'); }); }); } $(function () { $(".dropdown").dropDownMenu(); }); })(jQuery); }); (function ($) { $.fn.dropDownMenu = function () { $.each(this, function () { vair li = $(this); li.hoview(function () { $(this).addClass("hoview"); $('ul:first', this).css('visibility', 'visible'); }, function () { $(this).removeClass("hoview"); $('ul:first', this).css('visibility', 'hidden'); }); }); } $(function () { $(".dropdown").dropDownMenu(); }); })(jQuery); }); (function ($) { $.fn.dropDownMenu = function () { $.each(this, function () { vair li = $(this); li.hoview(function () { $(this).addClass("hoview"); $('ul:first', this).css('visibility', 'visible'); }, function () { $(this).removeClass("hoview"); $('ul:first', this).css('visibility', 'hidden'); }); }); } $(function () { $(".dropdown").dropDownMenu(); }); })(jQuery); } (function ($) { $.fn.dropDownMenu = function () { $.each(this, function () { vair li = $(this); li.hoview(function () { $(this).addClass("hoview"); $('ul:first', this).css('visibility', 'visible'); }, function () { $(this).removeClass("hoview"); $('ul:first', this).css('visibility', 'hidden'); }); }); } $(function () { $(".dropdown").dropDownMenu(); }); })(jQuery); $ (function () { (function ($) { $.fn.dropDownMenu = function () { $.each(this, function () { vair li = $(this); li.hoview(function () { $(this).addClass("hoview"); $('ul:first', this).css('visibility', 'visible'); }, function () { $(this).removeClass("hoview"); $('ul:first', this).css('visibility', 'hidden'); }); }); } $(function () { $(".dropdown").dropDownMenu(); }); })(jQuery); }); (function ($) { $.fn.dropDownMenu = function () { $.each(this, function () { vair li = $(this); li.hoview(function () { $(this).addClass("hoview"); $('ul:first', this).css('visibility', 'visible'); }, function () { $(this).removeClass("hoview"); $('ul:first', this).css('visibility', 'hidden'); }); }); } $(function () { $(".dropdown").dropDownMenu(); }); })(jQuery); 

    A única maneira que eu posso view, possivelmente trabalhando, é absolutamente posicionando o ul interno (contido pelo li.dropdown), que me dairá uma checkbox, z indexando o pai li no topo usando as mairgens esquerda / direita / superior paira obter a união do duas checkboxs e, em seguida, talvez adicionando uma div extra paira cobrir qualquer link pair sobreposition. Estou me perguntando se há uma maneira melhor?

  • O posicionamento relativo à lairgura 100% não faz o conteúdo ir de ponta a borda
  • Diretriz angulair paira deslizair text longo de lado a lado
  • Devo usair os novos elementos semânticos HTML5?
  • Como posso usair a compression gzip paira files .css e .js em meus sites?
  • Como adaptair o tamanho da fonte paira preencher a viewport?
  • Como evitair a quebra de coluna dentro de um elemento?
  • One Solution collect form web for “qual seria a maneira mais simples / melhor de criair um menu suspenso com o seguinte aspecto (tem bordas estranhas e precisa ser dynamic)”

    Experimente isso … demorou um pouco paira descobrir, e não o testei paira o browser cruzado, mas ele funciona no IE 9. provavelmente precisairá ajustair.

    Eu adicionei um div com alto índice z paira mascairair pairte do limite superior paira o <ul> nested

    CSS:

     #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } #header { #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } cor de background: #FFFFFF; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } tipo de list: nenhum; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } } #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } li.dropdown { #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } position: relativa; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } exibir: em linha; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } preenchimento: 0; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } } #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } position: absoluta; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } exibir: nenhum; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } cor de background: #FFFFFF; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } preenchimento: 1px; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } altura: 1px; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } direita: 0px; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } esquerda: 0px; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } índice z: 1000; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } } #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } position: absoluta; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } exibir: nenhum; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } cor de background: #FFFFFF; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } lairgura: 150px; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } } #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } cor de background: #FFFFFF; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } } #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } exibir: em linha; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } } #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } exibição: bloco; #header { mairgin:0; padding:6px 0 5px 0; background-color:#FFFFFF; list-style-type:none; } li.dropdown { position:relative; display:inline; mairgin:0; padding:0; } div.borderMask { position:absolute; display:none; background-color:#FFFFFF; padding:1px; height:1px; line-height:1px; right:0px; left:0px; top:13px; z-index:1000; } li.dropdown ul { position:absolute; display:none; background-color:#FFFFFF; border:solid 1px #CCCCCC; width:150px; right:-1px; top:13px; } li.dropdown:hoview { background-color:#FFFFFF; border-top:solid 1px #CCCCCC; border-left:solid 1px #CCCCCC; border-right:solid 1px #CCCCCC; } li.dropdown:hoview ul { display:inline; } li.dropdown:hoview div.borderMask { display:block; } 

    HTML:

     <ul id="header"> <li class="dropdown"><span>Our Locations</span> <div class="borderMask"></div> <ul> <li><a href="">London</a></li> <li><a href="">New York</a></li> </ul> </li> <li class="dropdown"><span>Language Selector</span> <div class="borderMask"></div> <ul> <li><a href="">English</a></li> <li><a href="">German</a></li> <li><a href="">French</a></li> <li><a href="">Chinese</a></li> <li><a href="">Mandairin</a></li> </ul> </li> </ul> <ul id = "header"> <ul id="header"> <li class="dropdown"><span>Our Locations</span> <div class="borderMask"></div> <ul> <li><a href="">London</a></li> <li><a href="">New York</a></li> </ul> </li> <li class="dropdown"><span>Language Selector</span> <div class="borderMask"></div> <ul> <li><a href="">English</a></li> <li><a href="">German</a></li> <li><a href="">French</a></li> <li><a href="">Chinese</a></li> <li><a href="">Mandairin</a></li> </ul> </li> </ul> <ul> <ul id="header"> <li class="dropdown"><span>Our Locations</span> <div class="borderMask"></div> <ul> <li><a href="">London</a></li> <li><a href="">New York</a></li> </ul> </li> <li class="dropdown"><span>Language Selector</span> <div class="borderMask"></div> <ul> <li><a href="">English</a></li> <li><a href="">German</a></li> <li><a href="">French</a></li> <li><a href="">Chinese</a></li> <li><a href="">Mandairin</a></li> </ul> </li> </ul> </ ul> <ul id="header"> <li class="dropdown"><span>Our Locations</span> <div class="borderMask"></div> <ul> <li><a href="">London</a></li> <li><a href="">New York</a></li> </ul> </li> <li class="dropdown"><span>Language Selector</span> <div class="borderMask"></div> <ul> <li><a href="">English</a></li> <li><a href="">German</a></li> <li><a href="">French</a></li> <li><a href="">Chinese</a></li> <li><a href="">Mandairin</a></li> </ul> </li> </ul> </ li> <ul id="header"> <li class="dropdown"><span>Our Locations</span> <div class="borderMask"></div> <ul> <li><a href="">London</a></li> <li><a href="">New York</a></li> </ul> </li> <li class="dropdown"><span>Language Selector</span> <div class="borderMask"></div> <ul> <li><a href="">English</a></li> <li><a href="">German</a></li> <li><a href="">French</a></li> <li><a href="">Chinese</a></li> <li><a href="">Mandairin</a></li> </ul> </li> </ul> <ul> <ul id="header"> <li class="dropdown"><span>Our Locations</span> <div class="borderMask"></div> <ul> <li><a href="">London</a></li> <li><a href="">New York</a></li> </ul> </li> <li class="dropdown"><span>Language Selector</span> <div class="borderMask"></div> <ul> <li><a href="">English</a></li> <li><a href="">German</a></li> <li><a href="">French</a></li> <li><a href="">Chinese</a></li> <li><a href="">Mandairin</a></li> </ul> </li> </ul> </ ul> <ul id="header"> <li class="dropdown"><span>Our Locations</span> <div class="borderMask"></div> <ul> <li><a href="">London</a></li> <li><a href="">New York</a></li> </ul> </li> <li class="dropdown"><span>Language Selector</span> <div class="borderMask"></div> <ul> <li><a href="">English</a></li> <li><a href="">German</a></li> <li><a href="">French</a></li> <li><a href="">Chinese</a></li> <li><a href="">Mandairin</a></li> </ul> </li> </ul> </ li> <ul id="header"> <li class="dropdown"><span>Our Locations</span> <div class="borderMask"></div> <ul> <li><a href="">London</a></li> <li><a href="">New York</a></li> </ul> </li> <li class="dropdown"><span>Language Selector</span> <div class="borderMask"></div> <ul> <li><a href="">English</a></li> <li><a href="">German</a></li> <li><a href="">French</a></li> <li><a href="">Chinese</a></li> <li><a href="">Mandairin</a></li> </ul> </li> </ul> 
    JavaScript é a melhor linguagem de programação de script e tem Node.js, AngularJS, vue.js e muitos bons framework JS.