/*
Here's a demo stylesheet used to format a menu and its content.
Feel free to alter the menu layout however you want. All you have to do is ensure the script
has the correct CSS property name (like 'visibility' or 'display') that you want it to change.
One good resource for UL/LI formatting: http://www.alistapart.com/articles/taminglists/
Consult your favourite CSS reference for editing fonts/borders/etc.
Otherwise, even if you're not very experienced at CSS, you can just go through and change
the #RGB border/background colours where suitable to customise for your site!
*/
/* OFFICE-STYLE FREESTYLE MENU LAYOUT */
/* All <ul> tags in the menu including the first level */
.menulist, .menulist ul {
margin: 0;
padding: 1px;
width: 155px;
list-style: none;
background: white url('img/bg_menu.png') left repeat-y;
background-position: -7px 0;
border: 1px solid #654;
text-align: left;
font-weight: bold;
}
.menulist ul, .menulist ul * ul{
width: 195px;
left: 185px;
}
/* Submenus (<ul> tags) are hidden and absolutely positioned across from their parent */
.menulist ul {
visibility: hidden;
position: absolute;
z-index: 10;
top: 0;
left: 145px;
}
/* All menu items (<li> tags) are relatively positioned (to correctly offset submenus). */
.menulist li {
position: relative;
z-index: 10;
}
/* Links inside the menu */
.menulist a {
display: block;
padding: 4px 5px 4px 5px;
color: #000;
text-decoration: none;
border-width: 1px;
border-style: none;
}
/* IE fix because it doesn't support transparent borders */
* html .menulist a {
border: none;
margin: 1px;
}
/*
Lit items: hover/focus = the current item. 'highlighted' = parent items to visible menus.
Here, active items are given a border, and a padding tweak to 'elevate' the text within.
Feel free to use background-image:url(file.gif) instead of background-color:#nnn here...
*/
.menulist a:hover, .menulist a.highlighted:hover, .menulist a:focus {
color: #FFF;
background-color: #46A;
padding: 4px 5px 4px 5px;
border: 1px solid #ADF;
margin: 0;
}
.menulist a.highlighted {
color: #FFF;
background-color: #68C;
border: 1px solid #CDE;
margin: 0;
}
/*
If you want per-item background images in your menu items, here's how to do it.
1) Assign a unique ID tag to each link in your menu, like so: <a id="xyz" href="#">
2) Copy and paste these next lines for each link you want to have an image:
.menulist a#xyz {
background-image: url(out.gif);
}
.menulist a#xyz:hover, .menulist a.highlighted#xyz, .menulist a:focus {
background-image: url(over.gif);
}
*/
/* 'subind' submenu indicators, which are automatically prepended to 'A' tag contents. */
.menulist a .subind {
float: right;
}
/* This semi-commented section exists to fix bugs in IE/Windows (the 'Holly Hack'). \*/
* html .menulist li {
float: left;
height: 1%;
}
* html .menulist a {
height: 1%;
}
.menulist ul {
background-position: -13px 0;
width: 180px;
z-index: 11;
}
.menulist ul li a{
padding-left: 28px;
z-index: 11;
}
.menulist ul li a:hover, .menulist ul li a.highlighted:hover, .menulist ul li a.highlighted:focus {
padding-left: 20px;
}
.menulist ul li ul {
background-position: -18px 0;
left: 170px;
width: 200px;
z-index: 11;
}
.menulist ul li ul li a{
padding-left: 23px;
z-index: 11;
}
.menulist ul li ul li a:hover,.menulist ul li ul li a.highlighted:hover, .menulist ul li ul li a.highlighted:focus {
padding-left: 15px;
}
.menulist ul li ul li ul{
background-position: -23px 0;
left: 190px;
width: 110px;
z-index: 11;
}
.menulist ul li ul li ul li a{
padding-left: 19px;
z-index: 11;
}
.menulist ul li ul li ul li a:hover,.menulist ul li ul li ul li a.highlighted:hover, .menulist ul li ul li ul li a.highlighted:focus {
padding-left: 11px;
}
.menuimg{
height: 13px;
padding-right: 20px;
}
.menulist a:hover .menuimg,.menulist a.highlighted:hover .menuimg, .menulist a.highlighted:focus .menuimg{
padding-right: 10px;
}
#iko1, #iko2, #iko3, #iko4, #iko5{
position: relative;
left: 2px;
top: 3px;
}
/* End Hack */