IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Mise en page CSS Discussion :

Mon menu ne s'affiche pas avec IE verson inférieure à 11


Sujet :

CSS

  1. #1
    Membre éprouvé
    Avatar de beegees
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mars 2004
    Messages
    3 610
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : Belgique

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Enseignement

    Informations forums :
    Inscription : Mars 2004
    Messages : 3 610
    Points : 1 277
    Points
    1 277
    Par défaut Mon menu ne s'affiche pas avec IE verson inférieure à 11
    Bonjour,

    Je rencontre un problème avec ce site.

    Le problème est que mon menu ne s'affiche pas, il est pourtant présent.

    Voici le code CSS de mon menu :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    /*Code css du menu */
    #nav
    {
    	position: relative;
    	top: 0px;
    	left: -1px;
       margin-bottom: auto;
       margin-left: auto;
       margin-right: auto;
       margin-top: -5px;
       width: 826px;
    }
    #menu
    {
       background-attachment: scroll;
       background-clip: border-box;
       background-color: rgba(0, 0, 0, 0);
       background-image: linear-gradient(rgb(68, 68, 68), rgb(17, 17, 17));
       background-origin: padding-box;
       background-position: 0 0;
       background-repeat: repeat;
       background-size: auto auto;
       border-bottom-left-radius: 0px;
       border-bottom-right-radius: 0px;
       border-top-left-radius: 0px;
       border-top-right-radius: 0px;
       box-shadow: 0 2px 1px rgb(156, 156, 156);
       list-style-image: none;
       list-style-position: outside;
       list-style-type: none;
       margin-bottom: 0;
       margin-left: 0;
       margin-right: 0;
       margin-top: 0;
       padding-bottom: 0;
       padding-left: 0;
       padding-right: 0;
       padding-top: 10px;
       width: 100%;
    }
    #menu li
    {
        float: left;
        line-height: 0;
        padding-bottom: 10px;
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
        position: relative;
    }
    li{
    	margin-left: -8px;
    	margin-right: -21px;
    }
    #menu a
    {
        float: left;
    	height: 25px;
    	padding: 0 25px;
    	color: white;
    	text-transform: uppercase;
    	font: bold 11px/25px Arial, Helvetica;
    	text-decoration: none;
    	text-shadow: 0 1px 0 #000;
    }
    #menu li:hover > a {
        color: rgb(250, 250, 250);
    }
    #menu li:hover > ul {
        display: block;
    }
    #menu ul { 
        background-attachment: scroll;
        background-clip: border-box;
        background-color: rgba(0, 0, 0, 0);
        background-image: linear-gradient(rgb(68, 68, 68), rgb(17, 17, 17));
        background-origin: padding-box;
        background-position: 0 0;
        background-repeat: repeat;
        background-size: auto auto;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
        display: none;
        left: 17px;
        list-style-image: none;
        list-style-position: outside;
        list-style-type: none;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        padding-bottom: 0;
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
        position: absolute;
        top: 35px;
        z-index: 99999;
    }
    #menu ul ul {
        left: 150px;
        top: 0;
    }
    #menu ul li {
        box-shadow: 0 1px 0 rgb(17, 17, 17), 0 2px 0 rgb(119, 119, 119);
        display: block;
        float: none;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        padding-bottom: 0;
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
    }
    #menu ul li:last-child {
        box-shadow: none;
    }
    #menu ul a {
        display: block;
        float: none;
        height: auto;
        line-height: 1;
        padding-bottom: 10px;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 10px;
        text-transform: none;
        white-space: nowrap;
        width: 130px;
    }
    :first-child + html #menu ul a {
        height: 10px;
    }  
    #menu ul a:hover {
        background-attachment: scroll;
        background-clip: border-box;
        background-color: rgba(0, 0, 0, 0);
        background-image: linear-gradient(#DF4449, #ba0101);
        background-origin: padding-box;
        background-position: 0 0;
        background-repeat: repeat;
        background-size: auto auto;
    }<!-- changer la couleur du bleu -->
    #menu ul li:first-child > a {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
    }
    #menu ul li:first-child a:after{
        content: '';
        position: absolute;
        left: 24px;
        top: -7px;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 8px solid #444;
    }
    #menu ul ul li:first-child a:after
    {
        left: -7px;
        top: 12px;
        width: 0;
        height: 0;
        border-left: 0;	
        border-bottom: 5px solid transparent;
        border-top: 5px solid transparent;
        border-right: 8px solid #444;
    }
    #menu ul li:first-child a:hover:after {
        border-bottom-color: #DF4449;
    }
    #menu ul ul li:first-child a:hover:after
    {
        border-right-color: #DF4449; 
        border-bottom-color: transparent; 	
    }
    #menu ul li:last-child > a {
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    #menu:after {
        clear: both;
        content: " ";
        display: block;
        font-size: 0;
        height: 0;
        visibility: hidden;
    }
    * html #menu {
    }
    :first-child + html #menu {
    }
    Je me permets d'inclure le code css de ma page index.php :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    body{	
    	color:black;
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size:12px;
    	max-height: 1464px;
    }
    h1 { font-size:17px;
         text-align: left;
    	color:#b3c200;
    }
    #principal {
    	width: 863px;
    	height: 1500px;
    	background-image: url(images/bg2.jpg);
    	background-repeat: no-repeat;
    	margin: auto;
    }
    #header{
    	width: 797px;
    	height: 228px;
    	position: relative;
    	top: -7px;
    	left: 19px;
    	background-image: url(images/Banniere3.jpg);
    	background-repeat: no-repeat;
    }
    #fr
    {
    	width: 33px;
    	height: 34px;
    	background-image: url(images/drapeau_francais.png);
    	background-repeat: no-repeat;
    	position: relative;
    	top: 10px;
    	left: 718px;
    }
    #ang
    {
    	width: 29px;
    	height: 29px;
    	background-image: url(images/drapeau_anglais.png);
    	background-repeat: no-repeat;
    	position: relative;
    	top: -21px;
    	left: 756px;
    }
    #article{
    	width: 798px;
    	height: 228px;
    	background-color: white;
    	position: relative;
    	top: -13px;
    	left: 18px;
    }
    #plan{
    	width: 245px;
    	height: 45px;
    	background-image: url(images/plan_acces.png);
    	background-repeat: no-repeat;
    	position: relative;
    	top: 0px;
    	left: 5px;
    }
    #map{
    	width: 187px;
    	height: 123px;
    	position: relative;
    	top: 3px;
    	left: 8px;
    }
    .loupe{
    	position: relative;
    	top: -3px;
    	left: 210px;
    }
    #contactez{
    	width: 245px;
    	height: 46px;
    	background-image: url(images/contactez.png);
    	background-repeat: no-repeat;
    	position: relative;
    	top: 30px;
    	left: 5px;
    }
    #telephone{
    	width: 234px;
    	height: 32px;
    	background-image: url(images/telephone.jpg);
    	background-repeat: no-repeat;
    	position: relative;
    	top: 105px;
    	left: 174px;
    }
    #TS {
    	position: relative;
    	top: 37.5px;
    	left: 165px;
    	color: white;
    	font-family: 'Century Gothic', sans-serif;
    	font-size: 15px;
    	letter-spacing: 3.5px;
    }
    #arrobase{
    	width: 234px;
    	height: 46px;
    	position: relative;
    	top: -16px;
    	left: 20px;
    }
    .arrobase {
    	position: relative;
    	top: 9px;
    	left: -10px;
    }
    .plan {
    	position: relative;
    	top: 12px;
    	left: 52px;
    	color: white;
    	font-family: "Comic Sans MS", sans-serif;
    	font-size: 15px;
    }
    #jquiry{
    	width: 531px;
    	height: 223px;
    	position: relative;
    	left: 267px;
    	top: -349px;
    }
    #texte{
    	width: 556px;
    	height: 539px;
    	background-color: white;
    	position: relative;
    	left: 15px;
    	top: -299px;
    }
    #photo{
    	width: 224px;
    	height: 539px;
    	background-image: url(images/Femme.jpg);
    	background-repeat: no-repeat;
    	position: relative;
    	left: 574px;
    	bottom: 847px;
    }
    #footer{
    	width: 798px;
    	height: 328px;
    	background-image: url(images/footer.jpg);
    	background-repeat: no-repeat;
    	position: relative;
    	bottom: 856px;
    	left: 0px;
    }
    #copyright{
    	width: 798px;
    	height: 17px;
    	background-image: url(images/ligne.png);
    	background-repeat: no-repeat;
    	position: relative;
    	top: 350px;
    	left: 0px;
    }
    .copyright{
    	color: #323335;
    	font-family: "Comic Sans MS", sans-serif;
    	font-size: 13px;
    	text-align: left;
    	letter-spacing: 2px;
    	position: relative;
    	top: -9px;
    	left: 12px;
    }
    #dubinfo{
    	width: 118px;
    	height: 27px;
    	background-image: url(images/dubinfo2.jpg);
    	background-repeat: no-repeat;
    	position: relative;
    	top: -43px;
    	left: 684px;
    }
    a.mail{
    	color: white;
    	font-family: "Comic Sans MS", sans-serif;
    	font-size: 15px;
    	text-decoration: none;
    	text-align: center;
    }
     
     
     
    /*===================*/
    /*=== Main Styles ===*/
    /*===================*/
     
     
    .theme-default #slider {
        margin:99px auto 0 auto;
        width:530px; /* Make sure your images are the same size */
        height:222px; /* Make sure your images are the same size */
    }
    .theme-pascal.slider-wrapper,
    .theme-orman.slider-wrapper {
        margin-top:150px;
    }
     
    /*====================*/
    /*=== Other Styles ===*/
    /*====================*/
    .clear {
    	clear:both;
    }
    Je vous remercie d'avance pour votre aide.

  2. #2
    Invité
    Invité(e)
    Par défaut
    Bonjour,
    je t'invite à réduire notablement ton code CSS :

    Code css : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
       margin-bottom: 0;
       margin-left: 0;
       margin-right: 0;
       margin-top: 0;
       padding-bottom: 0;
       padding-left: 0;
       padding-right: 0;
       padding-top: 10px;
    devient :
    Code css : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
       margin: 0;
       padding: 10px 0 0 0;
    A savoir (dans les sens des aiguilles d'une montre... à aiguilles !) :
    Code css : Sélectionner tout - Visualiser dans une fenêtre à part
    blabla: top right left bottom;
    Et pour background:...; -> Fond tout-en-un

    Quant à ton "problème" sur IE<11, le menu est bien là, mais sans couleur de fond !
    C'est lié à background-image: linear-gradient...);.
    Il faut ajouter du code "spécial IE et anciens navigateurs" :
    voir Ultimate CSS Gradient Generator.
    Dernière modification par Invité ; 06/12/2013 à 14h16.

  3. #3
    Rédacteur

    Avatar de Bovino
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juin 2008
    Messages
    23 647
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 54
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2008
    Messages : 23 647
    Points : 91 220
    Points
    91 220
    Billets dans le blog
    20
    Par défaut
    Un minimum de recherche préalable aurait suffit...

    Jérôme :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    padding-bottom: 10px 0 0 0;
    Rhooo...

  4. #4
    Invité
    Invité(e)
    Par défaut
    Rhooo... !
    "Trop de copier-coller tue le copier-coller"
    (citation à... copier-coller )

  5. #5
    Membre éprouvé
    Avatar de beegees
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mars 2004
    Messages
    3 610
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : Belgique

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Enseignement

    Informations forums :
    Inscription : Mars 2004
    Messages : 3 610
    Points : 1 277
    Points
    1 277
    Par défaut
    Bonjour Jreaux,

    Merci pour ta réponse, cela m'aide beaucoup.

    J'ai laissé tomber le dégradé pour revenir à une couleur unie.

    Merci pour votre aide.

    bee

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Mon report ne s'affiche pas avec Eclipse
    Par RaizZzo dans le forum Jasper
    Réponses: 1
    Dernier message: 09/07/2013, 16h09
  2. Mon report ne s'affiche pas avec Eclipse
    Par RaizZzo dans le forum AWT/Swing
    Réponses: 3
    Dernier message: 26/06/2013, 18h22
  3. Réponses: 8
    Dernier message: 23/07/2011, 15h09
  4. [CSS 2] Les images dans mon menu ne s'affichent pas
    Par naghame dans le forum Mise en page CSS
    Réponses: 1
    Dernier message: 25/05/2011, 14h15
  5. mon champ ne s'affiche pas avec rave
    Par easydsl54 dans le forum Rave
    Réponses: 2
    Dernier message: 16/05/2011, 19h26

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo