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 :

probleme style CSS [Fait]


Sujet :

CSS

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé Avatar de rems033
    Profil pro
    Inscrit en
    Mai 2007
    Messages
    513
    Détails du profil
    Informations personnelles :
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Mai 2007
    Messages : 513
    Par défaut probleme style CSS
    salut à tous,
    J'ai un souci avec mes feuilles de styles CSS, je vous explique :
    sur mon site, il y a un menu déroulant en CSS contenu dans un div #menu
    Lorsque je veux mettre des liens dans le div #pied_de_page, les liens se mettents les uns sous les autres!!!
    Résultat :

    Accueil
    -
    Acheter
    -
    Vendre
    etc....

    Ce que je veux :

    Accueil - Acheter - Vendre, etc....

    Merci pour votre aide...

  2. #2
    Membre confirmé
    Profil pro
    Inscrit en
    Octobre 2007
    Messages
    50
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Octobre 2007
    Messages : 50
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
     
    <ul id="menupied">
      <li>menu1</li>
      <li>menu2</li>
    </ul>
     
    en css:
     
    #menupied li {display: inline;}

  3. #3
    Membre éclairé Avatar de rems033
    Profil pro
    Inscrit en
    Mai 2007
    Messages
    513
    Détails du profil
    Informations personnelles :
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Mai 2007
    Messages : 513
    Par défaut
    ca me fait le meme probleme mais merci quand meme....
    Je te laisse mon code si tu a 3 min...
    CSS :
    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
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
     
    @charset "latin1;
    html {
            background:#666666;
    }
    body {
            margin: 0 ;
            padding: 0 ;
            font: 10pt Verdana, Arial, Helvetica, sans-serif ;
            text-align: center ;
            background:#666666;
    }
    #global {
            width: 790px ;
            height:800px ;
            margin-right: auto ;
            margin-left: auto ;
            margin-top: 0 ;
            margin-bottom: 0 ;
            text-align: left ;
    }
    #entete {
            padding: 0 ;
            margin: 0 ;
            width:790px;
            height: 120px ;
            background-image: url(../images/ckg_01.png);
    }
    #menu {
            float:none ;
            padding: 0 ;
            margin: 0 ;
            width:790px;
            height: 55px ;
            background-image: url(../images/ckg_10.png);
    }
    #content {
            clear:both ;
            padding-top: 0 ;
            padding-left: 0 ;
            margin: 0 ;
            width: 790px ;
            height:536px ;
    }
    #bande_gauche {
            float:left ;
            padding: 0 ;
            margin: 0 ;
            width:44px;
            height: 536px ;
            background-image: url(../images/ckg_02.png);
    }
    #bande_droite {
            float:left ;
            padding: 0 ;
            margin: 0 ;
            width:40px;
            height: 536px ;
            background-image: url(../images/ckg_08.png);
    }
    #barre_gauche {
            float:left ;
            padding: 0 ;
            margin: 0 ;
            width:5px;
            height: 536px ;
            background-image: url(../images/ckg_04.png);
    }
    #barre_droite {
            float:left ;
            padding: 0 ;
            margin: 0 ;
            width:5px;
            height: 536px ;
            background-image: url(../images/ckg_06.png);
    }
    #menu_gauche {
            float:left ;
            padding: 0 ;
            margin: 0 ;
            width:125px;
            height: 536px ;
            background-image: url(../images/ckg_03.png);
            text-align:center;
    }
    #menu_droite {
            float:left ;
            padding: 0 ;
            margin: 0 ;
            width:130px;
            height: 536px ;
            background-image: url(../images/ckg_07.png);
            text-align:center;
    }
    #contenu {
            float:left ;
            padding: 0 ;
            margin: 0 ;
            width:441px;
            height: 536px ;
            background-image: url(../images/ckg_05.png);
            text-align:center ;
            font-family:"Verdana" ;
            font-size:14px;
            color:#333333 ;
            background-color:#FFFFFF ;
    }
    #pied_de_page {
            clear:both;
            float:left;
            margin: 0 ;
            width:790px;
            height: 89px ;
            background-image: url(../images/ckg_09.png);
            text-align:center;
            font-family:"Verdana" ;
            font-size:x-small;
            overflow: hidden;
            padding: 0;
    }
     
    #pied_de_page li {
            display: inline;
    }
     
    /* the menu */
     
    #menunav {
        width: 790;
        height: 20px;
        padding-left:2px;
        padding: 0;
        border: 0;    
        list-style-type: none;
        font-family:"Verdana";
        font-size:x-small;
    }
     
    #menunav li {
        float: left;
        width: 131px !important;
        width: 90px;
        margin: 0;
        padding: 0;
        border: 0;    
        text-align: center;
        line-height: 15px;
        font-size:x-small;
        display: block;
        text-decoration: none;
        background-color: #FFFFFF;
    }
     
    #menu a {
        padding:3px;
        text-decoration:none;
        color: #FFFFFF;
        border: 1px solid #333333;
        width:100%; /* IE */
    }
     
    #menu ul,li,a {
        display:block;
        margin:0;
        padding:0;
        border:0;
    }
     
    .liens {
        text-family:"Verdana" ;
        font-size:small;
        color:#333333;
    }
     
    #menu li.rubrique>ul { 
        left:140px; 
    } /* others */
     
    #pied_de_page a {
        text-decoration:none;
        color:#333333 ;
    }
     
    #pied_de_page a:hover {
        text-decoration:none;
        color:#000099 ;
    }
     
    #menu li>a { width:auto; } /* others */
     
    #menu li a.first-rub {
        background-color: gray;    
    }
     
    #menu li a.second-rub {
        font-size:1em;
        background-color: gray;
    }
     
    /* regular hovers */
     
    #menu a:hover {
        border: 2px solid gray;
    }
     
    #menu li.rubrique a:hover {
        background-color: #CCCCCC;
        border: 1px solid gray;
    }
     
    /* hovers with specificity */
     
    #menu li a.first-rub:hover {
        clear:both ;
        color: #FFFF00;
        background: #666666;
        border-top-color: #000000;
        border-right-color: #000000;
        border-bottom-color: #000000;
        border-left-color: #000000;
    }
     
    #menu li.rubrique:hover { z-index:10; }        
     
    #menu ul ul, li:hover ul ul {
        display:none;
    }
     
    #menu li:hover ul, li:hover li:hover ul {
        display:block;
    }
     
    #menu_droite a:hover {
        text-decoration:none;
        border:thin
    }
     
    #menu_droite a {
        text-family:"Verdana" ;
        font-size:small;
        color:#000066;
        text-decoration:none;
        border:none ;
    }
     
    #menu_droite p {
        text-family:"Verdana" ;
        font-size:small ;
        color:#000066 ;
        text-decoration:none ;
    }
     
    #menu_gauche p {
        text-family:"Verdana" ;
        font-size:small ;
        color:#000066 ;
        text-decoration:none ;
    }
     
    #menu_gauche a {
        text-family:"Verdana" ;
        font-size:small;
        color:#000066;
        text-decoration:none;
        border:none ;
    }
     
    #menu_gauche img {
        border: none ;
    }
     
    #menu_droite img {
        border: thin ;
    }
     
    #contenu p {
        text-family:"Verdana" ;
        font-size:small ;
        color:#000066 ;
        text-decoration:none ;
    }
     
    #contenu table {
        text-family:"Verdana" ;
        font-size:small ;
        color:#000066 ;
        text-decoration:none ;
    }
    HTML
    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
     
    <html>
    <head>
    <title>Cabinet Campings en France : Accueil...</title>
    <meta http-equiv="Content-Type" content="text/html; charset=latin1">
    <link href="styles/styles.css" rel="stylesheet" type="text/css">
    </head>
     
    <div id="global">
        <div id="entete">
     
        </div>
      <div id="menu">
           <ul id="menunav">
     
                <li class="rubrique">
                    <a href="index.html" title="Accueil" class="first-rub">Accueil</a>            </li>
     
                <li class="rubrique">
                <a href="acheter.html" title="Acheter" class="first-rub">Acheter</a>            </li>
     
                <li class="rubrique">
                <a href="vendre.html" title="Vendre" class="first-rub">Vendre</a>            </li>
     
                <li class="rubrique">
                <a href="normes.html" title="Réglementation" class="first-rub">Réglementation</a>            </li>
     
                <li class="rubrique">
                <a href="a_propos.html" title="Qui sommes-nous ?" class="first-rub">Qui sommes-nous ?</a>            </li>
     
                <li class="rubrique">
                <a href="contacts.html" title="Contacts" class="first-rub">Contacts</a>            </li>
     
        </ul>
        </div>
        <div id="content">
             <div id="bande_gauche">
     
          </div>
            <div id="menu_gauche">        
                <p>Contacts</p>
                <hr>
                <p>
                Téléphone<br>
                <strong>05.56.11.77.33</strong>            </p>
                <p>
                Fax<br>
                <strong>05.56.39.51.12</strong>            </p>
                <p>
                Portable<br>
                <strong>06.68.34.01.98</strong>            </p>
                <hr>
                <a href="mailto:service-commercial@campings-en-france.net"><img src="images/e_mail2_068.gif" title="Nous Ecrire"></a>        </div>
            <div id="barre_gauche">
     
            </div>
            <div id="contenu">
                <h1>
                Bienvenue sur le site du <strong><br>Cabinet Campings en France</strong>
                </h1>
              <hr>
                <p><strong>Cabinet spécialisé</strong> dans la <strong>
                Vente de Campings <br>en France</strong>, nous allons offrir 
                à partir du mois de <br>Novembre 2007 à notre clientèle 
                (française et étrangère), <br>un <strong>large choix de 
                campings sur tout <br>le territoire français</strong>.
                </p>
                <p>
                Notre société pourra vous accompagner dans <br>l'<strong>acquisition 
                de votre futur Camping</strong>, avec l'aide d'un
                <strong>Expert comptable</strong> et d'un <strong>Avocat 
                spécialisé</strong>.
                </p>
                <p>
                <strong>En attendant le mois de Novembre, vous pourrez 
                nous contacter et nous laisser un message par le biais 
                de notre site internet, en cliquant sur Contacts</strong>
                </p>
            </div>
            <div id="barre_droite">
     
            </div>
            <div id="menu_droite">
                <p class="liens">Liens Utiles</p><hr>
                <a href="http://www.fnhpa-france.com" title="Fédération Nationale"><img alt="" src="images/logo_federation_nationale.jpg" width="91" height="55"/></a><br>
                <a href="http://www.campingeurope.com" title="Fédération Européenne"><img alt="" src="images/logo_federation_euro.jpg" width="74" height="70"/></a><br>
                <a href="http://www.sacem.fr" title="Sacem"><img alt="" src="images/logo_sacem.gif" width="92" height="42" /></a><br>
                <a href="http://www.campingqualite.com" title="Camping Qualité"><img alt="" src="images/logo_camping qualité.png" width="72" height="67"/></a><br>
                <a href="http://www.ancv.com" title="ANCV"><img alt="" src="images/logo_ancv.gif" width="61" height="44"/></a><br>
                <a href="http://www.licences4.net" title="Licences de Débits de Boissons"><img alt="" src="images/logo_licences4net.png" width="70" height="65"/></a><br>
     
            </div>
            <div id="bande_droite">
     
            </div>
      </div>
        <div id="pied_de_page">
            <ul>
              <li><a href="index.php">Accueil</a></li>
              <li><a href="acheter/acheter.php">Acheter</a></li>
              <li><a href="vendre/vendre.php">Vendre</a></li>
              <li><a href="normes/normes.php">Réglementation</a></li>
              <li><a href="a_propos/a_propos.php">Qui sommes-nous ?</a></li>
              <li><a href="plan_site/site_map.htm">Plan du site</a></li>
            </ul>
            <p>
            Copyright © 2007 Campings-en-france.net . Tous droits réservés.
            </p>
        </div>
    </div>
    </body>
     
    </html>

  4. #4
    BnA
    BnA est déconnecté
    Membre éclairé Avatar de BnA
    Inscrit en
    Mars 2006
    Messages
    559
    Détails du profil
    Informations personnelles :
    Âge : 41

    Informations forums :
    Inscription : Mars 2006
    Messages : 559

  5. #5
    Membre éclairé Avatar de rems033
    Profil pro
    Inscrit en
    Mai 2007
    Messages
    513
    Détails du profil
    Informations personnelles :
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Mai 2007
    Messages : 513
    Par défaut
    En fait ce n'est pas ce que je veux réaliser!
    Je ne veux pas d'onglets mais plutot de simple liens séparés par des tirets....
    Je vais essayer de m'inspirer de ce que vous m'avez filé quand meme merci

  6. #6
    BnA
    BnA est déconnecté
    Membre éclairé Avatar de BnA
    Inscrit en
    Mars 2006
    Messages
    559
    Détails du profil
    Informations personnelles :
    Âge : 41

    Informations forums :
    Inscription : Mars 2006
    Messages : 559
    Par défaut
    Oui, mais en fait l'affichage "onglets" est géré par des styles CSS, que tu n'es pas obligé de répéter. Tu devrais n'avoir besoin que des "tips" de positionnement.

    Mais les pistes dont tu as besoin pour ton menu se trouvent en effet dans le lien que je t'ai donné. Une légère adaptation est bien sûr nécessairement, mais le principe est exactement le même!

    Et puis, entre toi et moi, tu apprendra mieux en comprenant par toi même le principe des menus CSS.

    Courage!

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

Discussions similaires

  1. Réponses: 1
    Dernier message: 10/01/2008, 14h09
  2. [CKEditor] problèmes avec mes styles css
    Par e.maquair dans le forum Bibliothèques & Frameworks
    Réponses: 2
    Dernier message: 20/08/2007, 00h01
  3. probleme style peek a boo avec JS et CSS
    Par very dans le forum Général JavaScript
    Réponses: 1
    Dernier message: 01/09/2006, 19h49
  4. [CSS] Probleme style avec IE
    Par rivierem dans le forum Mise en page CSS
    Réponses: 7
    Dernier message: 02/11/2005, 14h35
  5. Probleme xhtml/css
    Par tooms2028 dans le forum Mise en page CSS
    Réponses: 3
    Dernier message: 19/01/2005, 09h41

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