<div class="w3-dropdown-hover">
<button class="w3-button w3-hide-small w3-hover-text-light-grey w3-hover-dark-grey" style="color: #cccccc; forn-family: arial; font-size: 14px;">Arkivalier og værktøjer</button>
<div class="w3-dropdown-content w3-bar-block w3-black">
<a href="https://genealogiskforum.dk/arkivalier/canvas" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" style="font-family: arial; font-size: 14px; color: #cccccc; font-weight: lighter; margin-left:10px; text-decoration: none;">Geografisk indgang</a>
<a href="https://genealogiskforum.dk/arkivalier/kirkeboeger_2" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" style="font-family: arial; font-weight: normal; font-size: 14px; color: #cccccc; font-weight: lighter; margin-left:10px; text-decoration: none;">Kirkebøger</a>
<a href="https://genealogiskforum.dk/arkivalier/folketaellinger" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" style="font-family: arial; font-weight: normal; font-size: 14px; color: #cccccc; font-weight: lighter; margin-left:10px; text-decoration: none;">Folketællinger</a>
<a href="https://genealogiskforum.dk/arkivalier/ft/ft_light/" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" style="font-family: arial; font-weight: normal; font-size: 14px; color: #cccccc; font-weight: lighter; margin-left:10px; text-decoration: none; display: block">Folketællinger light</a>
<a href="http://genealogiskforum.dk/arkivalier/stednavne" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" style="font-family: arial; font-weight: normal; font-size: 14px; color: #cccccc; font-weight: lighter; margin-left:10px; text-decoration: none;" target= "_blank">Stednavne</a>
<a href="https://genealogiskforum.dk/arkivalier/skifter_staden" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" style="font-family: arial; font-weight: normal; font-size: 14px; color: #cccccc; font-weight: lighter; margin-left:10px; text-decoration: none;">Skifter Staden</a>
<a href="https://genealogiskforum.dk/arkivalier/kancelli" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" style="font-family: arial; font-weight: normal; font-size: 14px; color: #cccccc; font-weight: lighter; margin-left:10px; text-decoration: none;">Kancelli m.m.m.</a>
<a href="https://genealogiskforum.dk/arkivalier/allearkivalier" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" style="font-family: arial; font-weight: normal; font-size: 14px; color: #cccccc; font-weight: lighter; margin-left:10px; text-decoration: none;" target= "_blank">Alle arkivalier</a>
<a href="http://genealogiskforum.dk/laegdsruller.php" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" style="font-family: arial; font-weight: normal; font-size: 14px; color: #cccccc; font-weight: lighter; margin-left:10px; text-decoration: none;" target= "_blank">Lægdsruller</a>
<a href="http://geltzer.dk/kirkeaaret.php" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" style="font-family: arial; font-weight: normal; font-size: 14px; color: #cccccc; font-weight: lighter; margin-left:10px; text-decoration: none;" target= "_blank">Kirke kalender</a>
<a href="http://genealogiskforum.dk/arkivalier/tools" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" style="font-family: arial; font-weight: normal; font-size: 14px; color: #cccccc; font-weight: lighter; margin-left:10px; text-decoration: none;">Nyttige links</a>
<a href="http://genealogiskforum.dk/arkivalier/herredsbyfogeder" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" style="font-family: arial; font-weight: normal; font-size: 14px; color: #cccccc; font-weight: lighter; margin-left:10px; text-decoration: none;">Herreds- og Byfogeder</a>
<a href="https://genealogiskforum.dk/arkivalier" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" style="font-family: arial; font-weight: normal; font-size: 14px; color: #cccccc; font-weight: lighter; margin-left:10px; text-decoration: none;">Om Arkivalier</a>
</div>
</div>
ASKER
ASKER
<!doctype html>
<html>
<head>
<style type="text/css">
ul {
margin: 0;
padding: 0;
list-style: none;
color: #fff !important;
background-color: #000 !important;
}
ul.main-nav {
width: 50%;
margin: 0 auto;
}
ul.main-nav ul {
display: none;
}
ul.main-nav > li {
position: relative;
display: inline-block;
}
ul.main-nav a {
display: inline-block;
font-family: arial;
font-weight: normal;
font-size: 14px;
color: #cccccc;
font-weight: lighter;
margin-left:10px;
text-decoration: none;
white-space: nowrap;
padding: 10px 16px;
}
ul.main-nav > li > ul {
position: absolute;
}
ul.main-nav li:hover > ul {
display: block;
}
ul.main-nav ul ul {
margin-left: 15px;
padding-left: 15px;
}
nav {
font-family: sans-serif;
font-size: 0.8rem;
font-weight: lighter;
padding-top: 8px;
border-top: 1px solid #cccccc;
background-color: #000 !important;
padding: 10px 0;
}
</style>
</head>
<body>
<nav>
<ul class="main-nav">
<li><a href="https://genealogiskforum.dk" class="w3-bar-item w3-button w3-hide-small w3-hover-text-light-grey w3-hover-dark-grey" >Velkommen</a></li>
<li><a href="https://genealogiskforum.dk/slaegtstrae" class="w3-bar-item w3-button w3-hide-small w3-hover-text-light-grey w3-hover-dark-grey" >Slægtstræ</a></li>
<li><a href="https://genealogiskforum.dk/Gf_Magasin" class="w3-bar-item w3-button w3-hide-small w3-hover-text-light-grey w3-hover-dark-grey" >Gf magasin</a></li>
<li><a href="https://genealogiskforum.dk/gravsten_pk" class="w3-bar-item w3-button w3-hide-small w3-hover-text-light-grey w3-hover-dark-grey" >Gravsten</a></li>
<li><a>Arkivalier og værktøjer</a>
<ul>
<li><a href="https://genealogiskforum.dk/arkivalier/canvas" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" style="font-family: arial; font-size: 14px; color: #cccccc; font-weight: lighter; margin-left:10px; text-decoration: none;">Geografisk indgang</a></li>
<li><a href="https://genealogiskforum.dk/arkivalier/kirkeboeger_2" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" >Kirkebøger</a></li>
<li><a href="https://genealogiskforum.dk/arkivalier/folketaellinger" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" >Folketællinger</a>
<ul>
<li><a href="https://genealogiskforum.dk/arkivalier/ft/ft_light/" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" style="font-family: arial; font-weight: normal; font-size: 14px; color: #cccccc; font-weight: lighter; margin-left:10px; text-decoration: none; display: block">Folketællinger light</a></li>
</ul>
</li>
<li><a href="http://genealogiskforum.dk/arkivalier/stednavne" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" target="_blank">Stednavne</a> </li>
<li><a href="https://genealogiskforum.dk/arkivalier/skifter_staden" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" >Skifter Staden</a></li>
<li><a href="https://genealogiskforum.dk/arkivalier/kancelli" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" >Kancelli m.m.m.</a> </li>
<li><a href="https://genealogiskforum.dk/arkivalier/allearkivalier" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" target="_blank">Alle arkivalier</a></li><li><a href="http://genealogiskforum.dk/laegdsruller.php" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" target="_blank">Lægdsruller</a></li><li><a href="http://geltzer.dk/kirkeaaret.php" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" target="_blank">Kirke kalender</a></li><li><a href="http://genealogiskforum.dk/arkivalier/tools" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" >Nyttige links</a></li><li><a href="http://genealogiskforum.dk/arkivalier/herredsbyfogeder" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" >Herreds- og Byfogeder</a> </li><li><a href="https://genealogiskforum.dk/arkivalier" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" >Om Arkivalier</a></li>
</ul>
</li>
</ul>
</nav>
</body>
</html>
Working sample here
ASKER
ASKER
<!doctype html>
<html>
<head>
<style type="text/css">
ul {
margin: 0;
padding: 0;
list-style: none;
color: #fff !important;
background-color: #000 !important;
}
ul.main-nav {
width: 50%;
margin: 0 auto;
}
ul.main-nav ul {
display: none;
}
ul.main-nav > li {
position: relative;
display: inline-block;
}
ul.main-nav a {
display: inline-block;
font-family: arial;
font-weight: normal;
font-size: 14px;
color: #cccccc;
font-weight: lighter;
margin-left:10px;
text-decoration: none;
white-space: nowrap;
padding: 10px 16px;
}
ul.main-nav > li > ul {
position: absolute;
}
ul.main-nav li:hover > ul {
display: block;
}
ul.main-nav ul li {
position: relative;
}
ul.main-nav ul ul {
position: absolute;
top: 0;
left: 100%;
}
nav {
font-family: sans-serif;
font-size: 0.8rem;
font-weight: lighter;
padding-top: 8px;
border-top: 1px solid #cccccc;
background-color: #000 !important;
padding: 10px 0;
}
</style>
</head>
<body>
<nav>
<ul class="main-nav">
<li><a href="https://genealogiskforum.dk" class="w3-bar-item w3-button w3-hide-small w3-hover-text-light-grey w3-hover-dark-grey" >Velkommen</a></li>
<li><a href="https://genealogiskforum.dk/slaegtstrae" class="w3-bar-item w3-button w3-hide-small w3-hover-text-light-grey w3-hover-dark-grey" >Slægtstræ</a></li>
<li><a href="https://genealogiskforum.dk/Gf_Magasin" class="w3-bar-item w3-button w3-hide-small w3-hover-text-light-grey w3-hover-dark-grey" >Gf magasin</a></li>
<li><a href="https://genealogiskforum.dk/gravsten_pk" class="w3-bar-item w3-button w3-hide-small w3-hover-text-light-grey w3-hover-dark-grey" >Gravsten</a></li>
<li><a>Arkivalier og værktøjer</a>
<ul>
<li><a href="https://genealogiskforum.dk/arkivalier/canvas" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" style="font-family: arial; font-size: 14px; color: #cccccc; font-weight: lighter; margin-left:10px; text-decoration: none;">Geografisk indgang</a></li>
<li><a href="https://genealogiskforum.dk/arkivalier/kirkeboeger_2" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" >Kirkebøger</a></li>
<li><a href="https://genealogiskforum.dk/arkivalier/folketaellinger" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" >Folketællinger</a>
<ul>
<li><a href="https://genealogiskforum.dk/arkivalier/ft/ft_light/" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" style="font-family: arial; font-weight: normal; font-size: 14px; color: #cccccc; font-weight: lighter; margin-left:10px; text-decoration: none; display: block">Folketællinger light</a></li>
</ul>
</li>
<li><a href="http://genealogiskforum.dk/arkivalier/stednavne" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" target="_blank">Stednavne</a> </li>
<li><a href="https://genealogiskforum.dk/arkivalier/skifter_staden" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" >Skifter Staden</a></li>
<li><a href="https://genealogiskforum.dk/arkivalier/kancelli" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" >Kancelli m.m.m.</a> </li>
<li><a href="https://genealogiskforum.dk/arkivalier/allearkivalier" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" target="_blank">Alle arkivalier</a></li><li><a href="http://genealogiskforum.dk/laegdsruller.php" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" target="_blank">Lægdsruller</a></li><li><a href="http://geltzer.dk/kirkeaaret.php" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" target="_blank">Kirke kalender</a></li><li><a href="http://genealogiskforum.dk/arkivalier/tools" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" >Nyttige links</a></li><li><a href="http://genealogiskforum.dk/arkivalier/herredsbyfogeder" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" >Herreds- og Byfogeder</a> </li><li><a href="https://genealogiskforum.dk/arkivalier" class="w3-bar-item w3-button w3-hover-text-light-grey w3-hover-dark-grey" >Om Arkivalier</a></li>
</ul>
</li>
</ul>
</nav>
</body>
</html>
Updated sample here
ASKER
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
ul {
margin: 0;
padding: 0;
list-style: none;
color: #fff !important;
background-color: #000 !important;
}
ul.main-nav {
width: 50%;
margin: 0 auto;
}
ul.main-nav ul {
display: none;
}
ul.main-nav > li {
position: relative;
display: inline-block;
}
ul.main-nav a {
display: inline-block;
font-family: sans-serif;
font-weight: lighter;
font-size: 0.8rem;
line-height: 1rem;
color: #e6e6e6;
margin-left:10px;
text-decoration: none;
white-space: nowrap;
padding: 10px 16px;
}
ul.main-nav a:hover {
background-color: #4d4d4d;
}
ul.main-nav > li > ul {
position: absolute;
}
ul.main-nav li:hover > ul {
display: block;
}
ul.main-nav ul li {
position: relative;
}
ul.main-nav ul ul {
position: absolute;
top: 0;
left: 100%;
}
nav {
font-family: sans-serif;
font-size: 0.8rem;
font-weight: lighter;
padding-top: 8px;
border-top: 1px solid #cccccc;
background-color: #000 !important;
padding: 10px 0;
}
</style>
</head>
<body>
<nav>
<ul class="main-nav">
<li><a href="https://genealogiskforum.dk" >Velkommen</a></li>
<li><a href="https://genealogiskforum.dk/slaegtstrae" >Slægtstræ</a></li>
<li><a href="https://genealogiskforum.dk/Gf_Magasin" >Gf magasin</a></li>
<li><a href="https://genealogiskforum.dk/gravsten_pk" >Gravsten</a></li>
<li><a>Arkivalier og værktøjer</a>
<ul>
<li><a href="https://genealogiskforum.dk/arkivalier/canvas" >Geografisk indgang</a></li>
<li><a href="https://genealogiskforum.dk/arkivalier/kirkeboeger_2" >Kirkebøger</a></li>
<li><a href="https://genealogiskforum.dk/arkivalier/folketaellinger" >Folketællinger</a>
<ul>
<li><a href="https://genealogiskforum.dk/arkivalier/ft/ft_light/" >Folketællinger light</a></li>
</ul>
</li>
<li><a href="http://genealogiskforum.dk/arkivalier/stednavne" target="_blank">Stednavne</a></li>
<li><a href="https://genealogiskforum.dk/arkivalier/skifter_staden" >Skifter Staden</a></li>
<li><a href="https://genealogiskforum.dk/arkivalier/kancelli" >Kancelli m.m.m.</a> </li>
<li><a href="https://genealogiskforum.dk/arkivalier/allearkivalier" target="_blank">Alle arkivalier</a></li><li><a href="http://genealogiskforum.dk/laegdsruller.php" target="_blank">Lægdsruller</a></li><li><a href="http://geltzer.dk/kirkeaaret.php" target="_blank">Kirke kalender</a></li><li><a href="http://genealogiskforum.dk/arkivalier/tools" >Nyttige links</a></li><li><a href="http://genealogiskforum.dk/arkivalier/herredsbyfogeder" >Herreds- og Byfogeder</a> </li><li><a href="https://genealogiskforum.dk/arkivalier" >Om Arkivalier</a></li>
</ul>
</li>
</ul>
</nav>
</body>
</html>
<style>
.horzMenu {
background: black;
text-align: center;
padding: 2px 0;
}
.horzMenu a{
display: inline-block;
text-decoration: none;
padding: 11px 11px;
font-family: arial;
font-weight: normal;
font-size: 14px;
color: #cccccc;
font-weight: lighter;
background: black;
}
.horzMenu a:hover {
background: #666;
}
.horzDropdown {
position: relative;
display: inline-block;
}
.horzDropdown button {
border: 0;
background: black;
display: inline-block;
cursor: s-resize;
padding: 11px 11px;
font-family: arial;
font-weight: normal;
font-size: 14px;
color: #cccccc;
font-weight: lighter;
}
.horzDrop4down button:hover {
background: #666;
}
.horzDropdown:hover > button {
background: #666;
}
.horzDropdown:hover > div {
display: block;
}
.horzDropdown:hover a {
background: #666;
}
.horzDrops {
position: absolute;
top: 100%;
left: 0px;
background: black;
z-index: 2;
display: none;
}
.horzDrops a{
display: block;
}
.horzRight {
position: relative;
}
.horzRight p{
margin: 0;
position: absolute;
left: 100%;
top: 0px;
display: none;
}
.horzRight:hover > p {
display: block;
width:10em;
}
.arowR, .arowD {
border: 6px solid transparent;
margin-top:2px;
margin-left:4px;
text-align:center;
display: inline-block;
}
.arowD {
border-bottom: none;
border-top-color: white;
}
.arowR {
margin-top:6px;
margin-left:7px;
margin-bottom: -2px;
border-right: none;
border-left-color: white;
}
</style>
<div class="horzMenu">
<a href="https://genealogiskforum.dk" >Velkommen</a>
<a href="https://genealogiskforum.dk/slaegtstrae">Slægtstræ</a>
<a href="https://genealogiskforum.dk/Gf_Magasin">Gf magasin</a>
<a href="https://genealogiskforum.dk/gravsten_pk">Gravsten</a>
<div class="horzDropdown">
<button>Arkivalier og værktøjer<i class="arowD"></i></button>
<div class="horzDrops">
<a href="https://genealogiskforum.dk/arkivalier/canvas" >Geografisk indgang</a>
<a href="https://genealogiskforum.dk/arkivalier/kirkeboeger_2">Kirkebøger</a>
<div class="horzRight">
<a href="https://genealogiskforum.dk/arkivalier/folketaellinger">Folketællinger<i class="arowR"></i></a>
<p><a href="https://genealogiskforum.dk/arkivalier/ft/ft_light/">Folketællinger light</a></p>
</div>
<a href="http://genealogiskforum.dk/arkivalier/stednavne" target= "_blank">Stednavne</a>
<a href="https://genealogiskforum.dk/arkivalier/skifter_staden">Skifter Staden</a>
<a href="https://genealogiskforum.dk/arkivalier/kancelli">Kancelli m.m.m.</a>
<a href="https://genealogiskforum.dk/arkivalier/allearkivalier" target= "_blank">Alle arkivalier</a>
<div class="horzRight">
<a href="http://genealogiskforum.dk/laegdsruller.php" target= "_blank">Lægdsruller<i class="arowR"></i></a>
<p><a href="https://genealogiskforum.dk/arkivalier/ft/ft_light/">Lægdsruller light</a></p>
</div>
<a href="http://geltzer.dk/kirkeaaret.php" target= "_blank">Kirke kalender</a>
<a href="http://genealogiskforum.dk/arkivalier/tools">Nyttige links</a>
<a href="http://genealogiskforum.dk/arkivalier/herredsbyfogeder">Herreds- og Byfogeder</a>
<a href="https://genealogiskforum.dk/arkivalier">Om Arkivalier</a>
</div>
</div>
</div>
ASKER
<style type="text/css">
ul {
margin: 0;
padding: 0;
list-style: none;
color: #fff !important;
background-color: #000 !important;
}
ul.main-nav {
width: 50%;
margin: 0 auto;
}
ul.main-nav ul {
display: none;
}
ul.main-nav > li {
position: relative;
display: inline-block;
}
ul.main-nav a {
display: inline-block;
font-family: arial;
font-weight: normal;
font-size: 14px;
color: #cccccc;
font-weight: lighter;
margin-left:10px;
text-decoration: none;
white-space: nowrap;
padding: 10px 16px;
}
ul.main-nav > li > ul {
position: absolute;
}
ul.main-nav li:hover > ul {
display: block;
}
ul.main-nav ul ul {
position: absolute;
top: 0;
left: 100%;
height: 100%;
}
nav {
font-family: sans-serif;
font-size: 0.8rem;
font-weight: lighter;
padding-top: 8px;
border-top: 1px solid #cccccc;
background-color: #000 !important;
padding: 10px 0;
}
</style>
Updated sample here
ASKER
ASKER
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
.horzMenu {
background-color: black; /*background-color color to the menu block*/
text-align: center;
padding: 2px 0;
}
.horzMenu a{
display: inline-block;
text-decoration: none;
padding: 10px 16px;
font-family: sans-serif;
font-weight: lighter;
font-size: 0.8rem;
line-height: 1rem;
color: #e6e6e6;
white-space: nowrap;
background-color: black; /* bbackground-color color to horizontal menu buttons */
}
.horzMenu a:hover {
background-color: #4d4d4d; /* hover fcolor to horizontal menu buttons */
}
.horzDropdown {
position: relative;
display: inline-block;
background-color: white; /* no color effect */
}
.horzDropdown button {
border: 0;
background-color: black;
display: inline-block;
cursor: s-resize;
padding: 11px 11px;
font-family: arial;
font-weight: normal;
font-size: 14px;
color: #e6e6e6;
font-weight: lighter;
background-color: black; /*background-color color to the dropdown button */
}
.horzDropdown a:hover {
background-color: green; /* no color effect */
}
.horzDropdown button:hover {
background-color: red; /* no color effect */
}
.horzDropdown:hover > button {
background-color: #4d4d4d; /*hover color to dropdown button*/
}
.horzDropdown:hover > div {
display: block;
background-color: green; /* no color effect */
}
.horzDropdown:hover a {
background-color: black; /* backgrpund color to dropdown list*/
}
.horzDrops {
position: absolute;
top: 100%;
left: 0px;
background-color: white; /* no color effect */
z-index: 2;
display: none;
}
.horzDrops a {
display: block;
background-color: green; /* no color effect */
}
.horzDrops:hover a{
background-color: #4d4d4d; /* hover color to the ENITIRE deopdown list */
}
.horzRight {
position: relative;
}
.horzRight p{
margin: 0;
position: absolute;
left: 100%;
top: 0px;
display: none;
}
.horzRight:hover > p {
display: block;
width:10em;
}
.arowR, .arowD {
border: 6px solid transparent;
margin-top:2px;
margin-left:4px;
font-size: 10px;
display: inline-block;
}
.arowD {
border-bottom: none;
border-top-color: white;
}
.arowR {
margin-top:6px;
margin-left:8px;
margin-bottom: -2px;
border-right: none;
border-left-color: white;
}
</style>
</head>
<body>
<div class="horzMenu">
<a href="https://genealogiskforum.dk" >Velkommen</a>
<a href="https://genealogiskforum.dk/slaegtstrae">Slægtstræ</a>
<a href="https://genealogiskforum.dk/Gf_Magasin">Gf magasin</a>
<a href="https://genealogiskforum.dk/gravsten_pk">Gravsten</a>
<div class="horzDropdown">
<button>Arkivalier og værktøjer<i class="arowD"></i></button>
<div class="horzDrops">
<a href="https://genealogiskforum.dk/arkivalier/canvas" >Geografisk indgang</a>
<a href="https://genealogiskforum.dk/arkivalier/kirkeboeger_2">Kirkebøger</a>
<div class="horzRight">
<a href="https://genealogiskforum.dk/arkivalier/folketaellinger">Folketællinger<i class="arowR"></i></a>
<p><a href="https://genealogiskforum.dk/arkivalier/ft/ft_light/">Folketællinger light</a></p>
</div>
<a href="http://genealogiskforum.dk/arkivalier/stednavne" target= "_blank">Stednavne</a>
<a href="https://genealogiskforum.dk/arkivalier/skifter_staden">Skifter Staden</a>
<a href="https://genealogiskforum.dk/arkivalier/kancelli">Kancelli m.m.m.</a>
<a href="https://genealogiskforum.dk/arkivalier/allearkivalier" target= "_blank">Alle arkivalier</a>
<div class="horzRight">
<a href="http://genealogiskforum.dk/laegdsruller.php" target= "_blank">Lægdsruller<i class="arowR"></i></a>
<p><a href="https://genealogiskforum.dk/arkivalier/ft/ft_light/">Lægdsruller light</a></p>
</div>
<a href="http://geltzer.dk/kirkeaaret.php" target= "_blank">Kirke kalender</a>
<a href="http://genealogiskforum.dk/arkivalier/tools">Nyttige links</a>
<a href="http://genealogiskforum.dk/arkivalier/herredsbyfogeder">Herreds- og Byfogeder</a>
<a href="https://genealogiskforum.dk/arkivalier">Om Arkivalier</a>
</div>
</div>
</div>
</body>
</html>
ASKER
ASKER
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
ul {
margin: 0;
padding: 0;
list-style: none;
color: #fff !important;
background-color: #000 !important;
}
ul.main-nav {
width: 50%;
margin: 0 auto;
}
ul.main-nav ul {
display: none;
}
ul.main-nav > li {
position: relative;
display: inline-block;
}
ul.main-nav a {
display: inline-block;
font-family: sans-serif;
font-weight: lighter;
font-size: 0.8rem;
line-height: 1rem;
color: #e6e6e6;
margin-left:10px;
text-decoration: none;
white-space: nowrap;
padding: 10px 16px;
}
ul.main-nav a:hover {
background-color: #4d4d4d;
}
ul.main-nav > li > ul {
position: absolute;
}
ul.main-nav li:hover > ul {
display: block;
}
/*ul.main-nav ul li {
position: relative;
}*/
ul.main-nav ul ul {
position: absolute;
left: 100%;
height: inherit;
top: 18%;
}
nav {
font-family: sans-serif;
font-size: 0.8rem;
font-weight: lighter;
padding-top: 8px;
border-top: 1px solid #cccccc;
background-color: #000 !important;
padding: 10px 0;
}
</style>
</head>
<body>
<nav>
<ul class="main-nav">
<li><a href="https://genealogiskforum.dk" >Velkommen</a></li>
<li><a href="https://genealogiskforum.dk/slaegtstrae" >Slægtstræ</a></li>
<li><a href="https://genealogiskforum.dk/Gf_Magasin" >Gf magasin</a></li>
<li><a href="https://genealogiskforum.dk/gravsten_pk" >Gravsten</a></li>
<li><a>Arkivalier og værktøjer</a>
<ul>
<li><a href="https://genealogiskforum.dk/arkivalier/canvas" >Geografisk indgang</a></li>
<li><a href="https://genealogiskforum.dk/arkivalier/kirkeboeger_2" >Kirkebøger</a></li>
<li><a href="https://genealogiskforum.dk/arkivalier/folketaellinger" >Folketællinger</a>
<ul>
<li><a href="https://genealogiskforum.dk/arkivalier/ft/ft_light/" >Folketællinger light</a></li>
</ul>
</li>
<li><a href="http://genealogiskforum.dk/arkivalier/stednavne" target="_blank">Stednavne</a></li>
<li><a href="https://genealogiskforum.dk/arkivalier/skifter_staden" >Skifter Staden</a></li>
<li><a href="https://genealogiskforum.dk/arkivalier/kancelli" >Kancelli m.m.m.</a> </li>
<li><a href="https://genealogiskforum.dk/arkivalier/allearkivalier" target="_blank">Alle arkivalier</a></li><li><a href="http://genealogiskforum.dk/laegdsruller.php" target="_blank">Lægdsruller</a></li><li><a href="http://geltzer.dk/kirkeaaret.php" target="_blank">Kirke kalender</a></li><li><a href="http://genealogiskforum.dk/arkivalier/tools" >Nyttige links</a></li><li><a href="http://genealogiskforum.dk/arkivalier/herredsbyfogeder" >Herreds- og Byfogeder</a> </li><li><a href="https://genealogiskforum.dk/arkivalier" >Om Arkivalier</a></li>
</ul>
</li>
</ul>
</nav>
</body>
</html>
What I would like to add, is that when hovering down over the drop down list, so it should be the whole with of the entry that takes the hover effect, and not just the text part of it.Does it not do that already?
But I have one problem. I have had to "hard code" the positioning of the sub-sub in the code below to get it shown right. But this will be a problem when I need to update the drop down list. Is there a way we can force it to display exactly to the right of its parent?That is as a result of mixing my two solutions. The first used the generic method of positioning the flyout - the second implementation I interpreted you wanting to have the entire sub-sub menu to be black and full height of main menu - so I removed the relative positioning.
/*ul.main-nav ul li {
position: relative;
}*/
ul.main-nav ul ul {
position: absolute;
left: 100%;
height: inherit;
top: 18%;
}
To thisul.main-nav ul li {
position: relative;
}
ul.main-nav ul ul {
position: absolute;
left: 100%;
height: inherit;
top: 0;
}
ASKER
ul.main-nav a {
display: inline-block;
font-family: sans-serif;
font-weight: lighter;
font-size: 0.8rem;
line-height: 1rem;
color: #e6e6e6;
/* margin-left: 10px; REMOVE THIS */
text-decoration: none;
white-space: nowrap;
padding: 10px 16px;
display: block; /* ADD THIS */
}
ASKER
<li><a href="https://genealogiskforum.dk/arkivalier/folketaellinger" >Folketællinger <span <i class="fa fa-angle-double-right" style="padding-left: 15px;"></span></i></a>
ASKER
ASKER
ASKER
ASKER
HTML (HyperText Markup Language) is the main markup language for creating web pages and other information to be displayed in a web browser, providing both the structure and content for what is sent from a web server through the use of tags. The current implementation of the HTML specification is HTML5.
TRUSTED BY
If it's just for visual effect, I would suggest you keep it real simple and just indent the text of the child link (padding-left: xxpx) to give the effect that it's subservient:
Item 1
Item 2
Item 3
Item 3a
Item 4
Item 5