Kleuren van menu balk

  • Onderwerp starter Onderwerp starter JMo
  • Startdatum Startdatum
Status
Niet open voor verdere reacties.

JMo

Gebruiker
Lid geworden
22 dec 2012
Berichten
106
Heb een site gemaakt met een menu en tekst eronder.

De body is;
Code:
body,td,th {
	font-family: Arial, Helvetica, sans-serif;
	color: black;
	background-color: white;
}

Het menu is een spry menu met css tekst hieronder.
Code:
@charset "UTF-8";

/* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */

/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */

/*******************************************************************************

 LAYOUT INFORMATION: describes box model, positioning, z-order

 *******************************************************************************/

/* The outermost container of the Menu Bar, an auto width box with no margin or padding */
ul.MenuBarHorizontal
{
	margin: 0;
	padding: 0;
	list-style-type: none;
	font-size: 100%;
	cursor: default;
	width: auto;
}
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
ul.MenuBarActive
{
	z-index: 1000;
}
/* Menu item containers, position children relative to this container and are a fixed width */
ul.MenuBarHorizontal li
{
	margin: 0;
	padding: 0;
	font-size: 100%;
	position: relative;
	text-align: left;
	cursor: pointer;
	width: 9.2em;
	float: left;
}
/* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarHorizontal ul
{
	margin: 0;
	padding: 0;
	list-style-type: none;
	font-size: 100%;
	z-index: 1020;
	cursor: default;
	width: 9.2em;
	position: absolute;
	left: -1000em;
}
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
{
	left: auto;
    visibility: visible;
}
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
{
	width: 9.2em;
}
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal ul ul
{
	position: absolute;
	margin: -5% 0 0 95%;
}
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
{
	left: auto;
	top: 0;
}

/*******************************************************************************

 DESIGN INFORMATION: describes color scheme, borders, fonts

 *******************************************************************************/

/* Submenu containers have borders on all sides #000 */
ul.MenuBarHorizontal ul
{
	border: 1px solid #000;
}
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarHorizontal a
{
	display: block;
	cursor: pointer;
	background-color: white;
	padding: 0.5em 0.75em;
	text-decoration: none;
}
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
{
	background-color: blue;
	color: white;
}
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
{
	background-color: blue;
	color: white;
}

/*******************************************************************************

 SUBMENU INDICATION: styles if there is a submenu under a given menu item

 *******************************************************************************/

/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenu
{
	background-image: url(SpryMenuBarDown.gif);
	background-repeat: no-repeat;
	background-position: 95% 50%;
}
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
{
	background-image: url(SpryMenuBarRight.gif);
	background-repeat: no-repeat;
	background-position: 95% 50%;
}
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
{
	background-image: url(SpryMenuBarDownHover.gif);
	background-repeat: no-repeat;
	background-position: 95% 50%;
}
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
{
	background-image: url(SpryMenuBarRightHover.gif);
	background-repeat: no-repeat;
	background-position: 95% 50%;
}

Mijn vraag is de menu letters moeten blauw zijn deze zijn paars?
De hover kleur is wel van blauw naar wens.
 
Hoi, heb je linkje of volledige code van bijvoorbeeld index.html waar ook code van de menu balk instaat?
 
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#apDiv1 {
	position: absolute;
	width: 817px;
	height: 100px;
	z-index: 1;
	background-color: #CCC;
	left: 300px;
}
body,td,th {
	font-family: Arial, Helvetica, sans-serif;
	color: black;
	background-color: white;
} 
</style>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<style type="text/css">    
#apDiv2 {
	position: absolute;
	width: 641px;
	height: 530px;
	z-index: auto;
	top: 775px;
	background-color: #FFFFFF;
	left: 50px;
}
#apDiv3 {
	position: absolute;
	width: 325px;
	height: 467px;
	z-index: auto;
	left: 37px;
	top: 175px;
}
#apDiv4 {
	position: absolute;
	width: 641px;
	height: 252px;
	z-index: auto;
	left: 410px;
	top: 308px;
	background-color: #999;
}
#apDiv5 {
	position: absolute;
	width: 212px;
	height: 114px;
	z-index: auto;
	left: 832px;
	top: 9px;
	background-color: #CCC;
} 
     
#apDiv6 {
	position: absolute;
	width: 637px;
	height: 562px;
	z-index: 1;
	left: 26px;
	top: 136px;
}
#apDiv7 {
	position: absolute;
	width: 1151px;
	height: 125px;
	z-index: 1;
	left: 99px;
	background-color: #0CF;
	top: 39px;
	visibility: inherit;
}
#apDiv8 {
	position: absolute;
	width: 252px;
	height: 99px;
	z-index: 2;
	left: 52px;
	background-color: #CCC;
}
#apDiv9 {
	position: absolute;
	width: 655px;
	height: 494px;
	z-index: 3;
	left: 50px;
	top: 250px;
}
</style>

</head>
<body>
<div id="apDiv1">
  <ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a href="index.html">Home</a></li>
    <li><a class="MenuBarItemSubmenu" href="#">Stichting A</a>
      <ul>
        <li><a href="ziektebeeld.html">Ziektebeeld</a></li>
        <li><a href="geschiedenis.html">Geschiedenis Stichting A</a></li>
        <li><a href="doel en beleid.html">Doel en beleid</a></li>
        <li><a href="zorgvisie.html">Zorgvisie</a></li>
        <li><a href="zorgverlener ASVZ.html">Zorgverlener ASVZ</a></li>
      </ul>
    </li>
    <li><a href="#" class="MenuBarItemSubmenu">Bestuur</a>
      <ul>
        <li><a href="samenstelling.html">Samenstelling</a></li>
        <li><a href="taak.html">Taak</a></li>
        <li><a href="rol van de familie.html">Rol van de familie</a></li>
        <li><a href="contact.html">Contact</a></li>
      </ul>
    </li>
    <li><a class="MenuBarItemSubmenu" href="#">Nieuws</a>
      <ul>
        <li><a href="activiteiten.html">Activiteiten</a>        </li>
        <li><a href="#">Foto's</a></li>
        <li><a href="jaarverslag.html">Jaarverslag +<br>&nbsp;jaarrekening</a></li>
      </ul>
    </li>
    <li><a href="links.html">Links</a></li>
  </ul>
</div>
<script type="text/javascript">
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
</script>
    
<div id="apDiv2">
  <blockquote>
    <h1>De stichting is een woonzorgcomplex in Breda voor mensen met een verhoogde kwetsbaarheid voor psychose (schizofrenie)</h1>
    <p>text</p>
  </blockquote>
</div>
<div id="apDiv9"><img src="image/IMG_2049.JPG" width="640" height="480" /></div>
<div id="apDiv8"><img src="image/Logo Org wit new.png" width="223" height="90" /></div>
</body>
</html>
 
Hoi, zo zou het al kunnen:

Code:
ul li a {
  color: blue;
}

beter:

Code:
ul#MenuBar1 li a {
  color: blue;
}
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan