Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1887 connectés 

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Menu positionnement différent sur IE et Firefox + Problème de bordure

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Menu positionnement différent sur IE et Firefox + Problème de bordure

n°2070569
elo1234
Qui vivra verra
Posté le 18-04-2011 à 08:47:46  profilanswer
 

Bonjour à tous,
 
Voici mes soucis :
- j'ai créé une barre de menu Spry avec Dreamweaver CS5 mais elle ne se place pas au bon endroit sous IE (elle va en haut de la page) alors que sous Mozilla ça marche. Comment faire ? Créer deux feuilles de style ?..
Au passage, j'utilise la version 7 d'IE, la version 4.0 de Firefox et je suis sous Windows XP (malheureusement).
 
- mon menu est composé de dix rubriques (pas de sous-rubriques) et j'aimerai mettre une bordure (à droite) de chaque rubrique mais quand je mets cela : border-right: 1px solid #333; la dixième rubrique passe au dessous. Comment avoir une bordure fine et mes dix rubriques sur une seule ligne?
 
Le code html :
 
<!-- menu -->  
     
<ul id="MenuBar1" class="MenuBarHorizontal">  
  <li><a href="#">Monts et <br/> ports</a></li>  
  <li><a href="#">Une civilisation <br/> pyrénéenne</a></li>  
  <li><a href="#">Réseaux <br/>  
    médiévaux</a></li>  
  <li><a href="#">Genèse et particularités <br/>  
    d'une frontière</a></li>  
  <li><a href="#">Frontière <br/> lieu de danger</a></li>  
  <li><a href="#">Frontière <br/> porte du salut</a></li>  
  <li><a href="#">Liens <br/> économiques</a></li>  
  <li><a href="#">Peuple de <br/>  
    la frontière</a></li>  
  <li><a href="#">Vision <br/> de l'autre</a></li>  
  <li><a href="#">La frontière <br/> aujourd'hui</a></li>  
</ul>
 
 
 
Le code CSS :
 
/* 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;  
}  
/* 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;  
    border: #E6E6E6;  
}  
/* 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;  
    font-family: "Arial Black", Gadget, sans-serif;  
    font-size:13px;  
    cursor: pointer;  
    float: left;  
    left: 4px;  
    top: 78px;  
    border-right: 1px solid #333;      
}  
 
 
/* Menu item containers are same fixed width as parent */  
ul.MenuBarHorizontal ul li  
{  
    width: 8.2em;  
}  
 
/*******************************************************************************  
 
 DESIGN INFORMATION: describes color scheme, borders, fonts  
 
 *******************************************************************************/  
 
/* Submenu containers have borders on all sides */  
ul.MenuBarHorizontal ul  
{  
    border: 4px solid #CCC;  
}  
/* Menu items are a light gray block with padding and no text decoration */  
ul.MenuBarHorizontal a  
{  
    display: block;  
    cursor: pointer;  
    background-color: #FFF;  
    padding: 0.5em 0.75em;  
    color: #3D93AA;  
    text-decoration: none;  
    text-align: center;  
    font-family:Georgia, "Times New Roman", Times, serif;  
}  
/* 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: #E6E6E6;  
    color: #62843A;  
}  
/* 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: #E6E6E6;  
    color: #62843A;  
}  
 
/*******************************************************************************  
 
 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%;  
}  
 
/*******************************************************************************  
 
 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;  
    z-index: 1010;  
    filter:alpha(opacity:0.1);  
}  
/* 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: inline;  
        f\loat: left;  
        background: #FFF;  
    }  
}  
 

mood
Publicité
Posté le 18-04-2011 à 08:47:46  profilanswer
 

n°2070841
vanish
Ce qui brûle, brûle !
Posté le 19-04-2011 à 11:38:07  profilanswer
 

Aprés lecture rapide :  
 

Citation :

Comment faire ?


Arrêter d'utiliser du code générer par dreamweaver :D
 
 
Désolé j'ai pas pu m'en empêcher, c'est vraiment trop trop crado.


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Menu positionnement différent sur IE et Firefox + Problème de bordure

 

Sujets relatifs
Probleme on mouse out et areaSoucis avec IE et bouton submit vs Firefox
macro VBA sous excell 2000 probleme avec excell 2007Problème avec une requete GROUP BY
Div sans marge[Résolu] Problème syntaxe IE sur lien vers une page avec lecteur mp3
Modification/amélioration menu contextuel gtk (C++?)Problème d'affichage d'image en hover dans une liste
Plus de sujets relatifs à : Menu positionnement différent sur IE et Firefox + Problème de bordure


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR