Hallo,
Heb sinds gisteren een raar probleem met een website die ik aan het maken ben.
URL: rijschoolbulten.nl
Wordrpess 3.6.1
Theme: Twenty ten
Als ik een sub menu wil openen, heb ik de background over de hele menu breedte.
Dit omdat ik de postion rule heb verwijderd uit de style sheet bij #access ul ul a {
Als ik de rule toevoegd kan ik niks aan klikken van mijn submenu bij tarieven en examen info.
Hierbij de code van mijn style.css
[code=taal]
/* =Menu
-------------------------------------------------------------- */
#access {
background: #000;
display: block;
float: left;
margin: 0 auto;
width: 940px;
}
#access .menu-header,
div.menu {
font-size: 13px;
margin-left: 0px;
width: 928px;
}
#access .menu-header ul,
div.menu ul {
list-style: none;
margin: 0;
}
#access .menu-header li,
div.menu li {
float: left;
}
#access a {
color: #aaa;
display: block;
line-height: 30px;
padding: 0 15px;
text-decoration: none;
}
#access ul ul {
box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
display: none;
top: 38px;
left: 0;
float: left;
width: 180px;
z-index: 2;
}
#access ul ul li {
min-width: 180px;
}
#access ul ul ul {
left: 100%;
top: 0;
}
#access ul ul a {
background: #333;
line-height: 1em;
padding: 10px;
width: 160px;
height: auto;
}
#access li:hover > a,
#access ul ul :hover > a {
background: #333;
color: #fff;
}
#access ul li:hover > ul {
display: block;
}
#access ul li.current_page_item > a,
#access ul li.current_page_ancestor > a,
#access ul li.current-menu-ancestor > a,
#access ul li.current-menu-item > a,
#access ul li.current-menu-parent > a {
color: #fff;
}
* html #access ul li.current_page_item a,
* html #access ul li.current_page_ancestor a,
* html #access ul li.current-menu-ancestor a,
* html #access ul li.current-menu-item a,
* html #access ul li.current-menu-parent a,
* html #access ul li a:hover {
color: #fff;
}
[/code=taal]
Heb sinds gisteren een raar probleem met een website die ik aan het maken ben.
URL: rijschoolbulten.nl
Wordrpess 3.6.1
Theme: Twenty ten
Als ik een sub menu wil openen, heb ik de background over de hele menu breedte.
Dit omdat ik de postion rule heb verwijderd uit de style sheet bij #access ul ul a {
Als ik de rule toevoegd kan ik niks aan klikken van mijn submenu bij tarieven en examen info.
Hierbij de code van mijn style.css
[code=taal]
/* =Menu
-------------------------------------------------------------- */
#access {
background: #000;
display: block;
float: left;
margin: 0 auto;
width: 940px;
}
#access .menu-header,
div.menu {
font-size: 13px;
margin-left: 0px;
width: 928px;
}
#access .menu-header ul,
div.menu ul {
list-style: none;
margin: 0;
}
#access .menu-header li,
div.menu li {
float: left;
}
#access a {
color: #aaa;
display: block;
line-height: 30px;
padding: 0 15px;
text-decoration: none;
}
#access ul ul {
box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
display: none;
top: 38px;
left: 0;
float: left;
width: 180px;
z-index: 2;
}
#access ul ul li {
min-width: 180px;
}
#access ul ul ul {
left: 100%;
top: 0;
}
#access ul ul a {
background: #333;
line-height: 1em;
padding: 10px;
width: 160px;
height: auto;
}
#access li:hover > a,
#access ul ul :hover > a {
background: #333;
color: #fff;
}
#access ul li:hover > ul {
display: block;
}
#access ul li.current_page_item > a,
#access ul li.current_page_ancestor > a,
#access ul li.current-menu-ancestor > a,
#access ul li.current-menu-item > a,
#access ul li.current-menu-parent > a {
color: #fff;
}
* html #access ul li.current_page_item a,
* html #access ul li.current_page_ancestor a,
* html #access ul li.current-menu-ancestor a,
* html #access ul li.current-menu-item a,
* html #access ul li.current-menu-parent a,
* html #access ul li a:hover {
color: #fff;
}
[/code=taal]