Jeg har et problem med min navigationsbar.
jeg har lavet nyt layout, på
http://www.spektakulus.dk/Det nye layout er hvid/gennemsigtigt, og lavet ved hjælp af nogle png-filer, og en i toppen og bunden af submenuerne for at det ikke bliver så firkantet.
det underlige er så at dette kun kan ses med IE.
når jeg åbner siden i FF så viser den det gamle layout hvor menu knapperne har en grå baggrund, men stadig med de hvide png filer i toppen og bunden.
det er som om at FF kun læser dele af CSS filen?
her er Css filen jeg har rettet den til og sikret mig at stien til den grå knap-baggrund ikke står der, men den bliver stadig vist i firefox:
@charset "UTF-8";
/* SpryMenuBarHorizontal.css - Revision: Spry Preview Release 1.4 */
/* 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: auto;
padding: 0;
font-size: 100%;
cursor: default;
height: 32px;
width: 600px;
text-align: center;
vertical-align: middle;
}
/* 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
{
height: 32px;
}
/* Menu item containers, position children relative to this container and are a fixed width */
ul.MenuBarHorizontal li
{
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
position: relative;
text-align: center;
cursor: pointer;
width: 150px;
float: left;
height: 32px;
z-index: 1000;
}
/* 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
{
padding: 0;
list-style-type: none;
font-size: 100%;
cursor: default;
position: absolute;
left: -1000em;
height: 32px;
}
/* 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;
height: 32px;
}
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
{
width: 186px;
height: 32px;
}
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal ul ul
{
position: absolute;
margin: -5% 0 0 95%;
height: 32px;
}
/* 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
{
top: 0;
}
/*******************************************************************************
DESIGN INFORMATION: describes color scheme, borders, fonts
*******************************************************************************/
/* Submenu containers have borders on all sides */
ul.MenuBarHorizontal ul
{
}
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarHorizontal a
{
cursor: pointer;
height: 32px;
display: block;
color: #000000;
text-align: center;
background-image: url(images/submenu_bg
.png repeat-y);
background-repeat: repeat-y;
background-image: url(../images/submenu_bg.png);
}
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
{
color: #000000;
height: 32px;
text-align: center;
background-image: url(../images/submenu_bg2.png) repeat-y;
}
/* 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-image: url(../images/submenu_bg2.png);
color: #000000;
height: 32px;
background-repeat: repeat-y;
}
/*******************************************************************************
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
{
height: 32px;
text-align: center;
background-image: url(../images/submenu_bg.png);
background-repeat: repeat-y;
}
/* 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-repeat: repeat-y;
background-position: 95% 50%;
height: 32px;
background-image: url(../images/submenu_bg.png);
}
/* 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-repeat: repeat-y;
height: 32px;
text-align: center;
background-image: url(../images/submenu_bg2.png);
}
/* 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(../images/submenu_bg2.png);
background-repeat: repeat-y;
background-position: 95% 50%;
height: 32px;
}
/*******************************************************************************
BROWSER HACKS: the hacks below should not be changed unless you are an expert
*******************************************************************************/
/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
ul.MenuBarHorizontal iframe
{
position: absolute;
}
/* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
@media screen, projection
{
ul.MenuBarHorizontal li.MenuBarItemIE
{
display: block;
f\loat: left;
color: #000000;
}
}
Indlæg senest redigeret d. 18.10.2008 12:51 af Bruger #14133