
July 17th, 2007, 11:19 AM
|
|
|
Quote: | Originally Posted by jansan22 I have a problem with a vertical menu.
When I hover the menu it does not "hover" the whole box.
The background is not shown where I have used padding.
code is below.
Code:
#niv_2_2_on,
#niv_2_2_off,
#niv_2_2_tree{
background-image:url(../../grafik/pil_undermenu.png);
background-repeat:no-repeat;
background-position:5px center;
padding:5px 0 5px 15px;
display:block;
background-color:#14aee4;
margin-top:2px;
text-transform:uppercase;
font-size:11px;
font-weight:bold;
}
#niv_2_2_on a:hover{ color:#FFF; text-decoration:none;display:block;background-color:#1d586e}
#niv_2_2_off a:hover{ color:#FFF; text-decoration:none;display:block;background-color:#1d586e}
#niv_2_2_on a{ color:#FFF; text-decoration:none;}
#niv_2_2_on a:link{ color:#FFF; text-decoration:none;}
#niv_2_2_off a{ color:#FFF; text-decoration:none;display:block;background-color:#1d586e}
#niv_2_2_off a:link{ color:#FFF; text-decoration:none;display:block;background-color:#1d586e}
#niv_2_2_tree a{ color:#FFF; text-decoration:none;display:block;background-color:#1d586e}
#niv_2_2_tree a:link{ color:#FFF; text-decoration:none;display:block;background-color:#1d586e}
/*MENU 3*/
#niv_3_3_on,
#niv_3_3_off{
background-image:url(../../grafik/pil_undermenu.png);
background-repeat:no-repeat;
background-position:30px center;
padding:5px 0 5px 40px;
display:block;
background-color:#14aee4;
margin-top:2px;
text-transform:uppercase;
font-size:11px;
font-weight:bold;
}
#niv_3_3_on a:hover{ color:#FFF; text-decoration:none;display:block;background-color:#1d586e}
#niv_3_3_off a:hover{ color:#FFF; text-decoration:none;display:block;background-color:#1d586e}
#niv_3_3_on a{ color:#FFF; text-decoration:none;}
#niv_3_3_on a:link{ color:#FFF; text-decoration:none;}
#niv_3_3_off a{ color:#FFF; text-decoration:none;display:block;background-color:#1d586e}
#niv_3_3_off a:link{ color:#FFF; text-decoration:none;display:block;background-color:#1d586e}
|
I'm not sure what you mean, can you give a working example?
Something that comes to mind is using z-index. The higher the z-index number the more priority it has over another and will display on top of it.
|