I have two problems I need help with.
1) The stylesheet was written to allow for submenus and can't get the colors right for links with no submenus.
2) When the menubar is veiwed by itself the submenus go directly below the link on hover. but when the links file is inserted into another file the submenu goes below and to the right of the link on hover. http://www.celticawen.frih.net/test/index.php I put the first 'home' link in to try and solve the color problem.
This is my css code:
[/quote]
1) The stylesheet was written to allow for submenus and can't get the colors right for links with no submenus.
2) When the menubar is veiwed by itself the submenus go directly below the link on hover. but when the links file is inserted into another file the submenu goes below and to the right of the link on hover. http://www.celticawen.frih.net/test/index.php I put the first 'home' link in to try and solve the color problem.
This is my css code:
| Code: |
| <style type="text/css">
#menu { width: 100%; background:#663300; float: left; } #menu ul { list-style: none; margin: 0; padding: 0; width: 7em; float: left; } #menu a, #menu h5 { font: bold 11px/16px arial, helvetica, sans-serif; display: block; border-width: 2px; border: outset; border-style: solid; border-color: #CFB58D; margin: 0; padding: 2px 3px; } #menu h5 { color: #FFFFCC; background: #663300; text-transform: uppercase; text-align: center; } #menu a { color: #663300; background: #E4D8AF; text-decoration: none; text-align: center; } #menu a:hover { color:#CFB58D; background: #FFFFCC; text-align: center; } #menu li {position: relative;} #menu ul ul { position: absolute; z-index: 500; } #menu ul ul ul { position: absolute; top: 0; left: 100%; } div#menu ul ul, div#menu ul li:hover ul ul, div#menu ul ul li:hover ul ul {display: none;} div#menu ul li:hover ul, div#menu ul ul li:hover ul, div#menu ul ul ul li:hover ul {display: block;} } <!--Style for links with no submenu--> .nav a:link{ border-color: #CFB58D; color: #FFFFCC; background-color: #663300; text-align: center; } .nav a:hover { color:#CFB58D; background: #FFFFCC; text-align: center; } <!--End of style for links with no submenu--> </style> <!--[if IE]> <style type="text/css" media="screen"> #menu ul li {float: left; width: 100%;} </style> <![endif]--> <!--[if lt IE 7]> <style type="text/css" media="screen"> body { behavior: url(csshover.htc); font-size: 100%; } #menu ul li a {height: 1%;} #menu a, #menu h5 { font: bold 0.7em/1.4em arial, helvetica, sans-serif; } </style> <![endif]--> |
