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 :

CSS: ajouter un menu à droite


Sujet :

CSS

  1. #1
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Décembre 2006
    Messages
    76
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Décembre 2006
    Messages : 76
    Points : 31
    Points
    31
    Par défaut CSS: ajouter un menu à droite
    Bonsoir à tous,

    Je souhaiterais faire une adaptation du site que je mets en place: www.rqo.be

    Voici mon 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
    body, html {
         background:#000 url(images/fond.jpg) center;
    	 margin:0;
    	 padding:0;font-family:Verdana, Arial, Helvetica, sans-serif;
    	 text-align:center;
    	 color:#FFF;
    	 background-attachment: fixed;
    	 font-size:11px;
    } 
    #conteneur {
         margin: 0 auto;
    	 position: relative;
    	 width: 800px;
    	 background-color: #fff;
    	 overflow: hidden;
    	 text-align:left;
    }  	 
    #header  {
         height:30px; 
    	 background:url(images/header.png) no-repeat top;
    	 padding:216px 0 0 0;
    } 
    #pied  {
         background: url(images/pied.png);
    	 height:37px;
    	 width:790px;
    	 padding:85px 10px 0 0;
    	 color:#fff;
    	 clear:both;
    }	  
    #left {
         float: left;
    	 width: 180px;
    	 background-color:#fff; 
    	 margin:0;
    	 padding:0;
    	 text-align:center;
    }   
    #center {
         width: 600px;
    	 background-color:#fff; 
    	 margin:0 0 0 180px;
    	 padding:0;
    }   
    /*Menu horizontal*/
    ul#menu  {
         height:21px;
    	 list-style-type: none;
    	 margin:0;
    	 padding:0;
    }  
    ul#menu li  {
         float: left ;
    	 text-align:center;
    }
    ul#menu li a {
         width:110px ;
    	 height:21px;
    	 color: #FFF ;
    	 display: block ;
    	 text-decoration: none ;
    	 outline:none;
    	 line-height:21px;
    	 background:url(images/menu.png) no-repeat;
    	 font-weight:bold;
    	 font-size:10px;
    	 margin:0 3px;
    }
    ul#menu li a:hover {
    	 background:url(images/menu_hover.png);
    }
    #mh {
    	 text-align:center;
    	 margin:0 auto;
    	 width:800px;
    	 height:40px;
    } 
    #mh table {
    	 text-align:center;
    	 margin:0 auto;
    } 		
    /*Menu couleur*/
    .menu_bleu_haut	{
    	 width:158px;
    	 height:24px;
    	 background: url(images/menu_bleu_haut.png);
    	 padding :11px 9px 0 0;
    	 margin :0;
    	 font-weight:bold;
    	 font-size:12px;
    	 text-align:right;
    }
    .menu_bleu_fond {
         width:135px;
    	 background: url(images/menu_bleu_fond.png);
    	 padding:0 14px 0 18px;
    }
    .menu_bleu_bas {
         width:167px;
    	 height:15px;
    	 background: url(images/menu_bleu_bas.png) no-repeat;
    	 padding :0;
    	 margin :0;
    }  
    ul.gb  {
         width:135px;
    	 padding:0;
    	 margin:0;
    	 list-style:none;
    	 font-size:10px;
    	 font-weight:bold;
    	 text-align:left;
    }
    ul.gb li a  {
         display:block;
         color:#1d9fe0;
         outline:none;
    	 text-decoration: none;
    	 outline:none;
    	 font-size:10px;
    	 font-weight:bold;
    }	
    ul.gb li a:hover {
         color: #85d0f5;
    	 outline:none;
    	 padding:0;
    	 margin:0 ;
    }	
    .menu_jaune_haut  {
         width:158px;
    	 height:24px;
    	 background: url(images/menu_jaune_haut.png);
    	 padding :11px 9px 0 0;
    	 font-weight:bold;
    	 font-size:12px;
    	 text-align:right;
    }
    .menu_jaune_fond  {
         width:135px;
    	 background: url(images/menu_jaune_fond.png);
    	 padding:0 14px 0 18px;
    }
    .menu_jaune_bas {
         width:167px;
    	 height:15px;
    	 background: url(images/menu_jaune_bas.png) no-repeat;
    } 
    ul.gj {
         width:135px;
    	 padding:0;
    	 margin:0;
    	 list-style:none;
    	 font-size:10px;
    	 font-weight:bold;
    	 text-align:left;
    }
    ul.gj li a  {
         display: block ;
    	 color:#fcb71e;
    	 outline:none;
    	 text-decoration: none;
    	 outline:none;
    }	
    ul.gj li a:hover  {
         color: #fdda8d;
    	 outline:none;
    	 padding:0;
    	 margin:0 ;
    }	
    .menu_rose_haut{
         width:158px;
    	 height:24px;
    	 background: url(images/menu_rose_haut.png);
    	 padding :11px 9px 0 0;
    	 margin :0;
    	 font-weight:bold;
    	 font-size:12px;
    	 text-align:right;
    }
    .menu_rose_fond {
         width:135px;
    	 background: url(images/menu_rose_fond.png);
    	 padding:0 14px 0 18px;
    }
    .menu_rose_bas {
         width:167px;
    	 height:15px;
    	 background: url(images/menu_rose_bas.png) no-repeat;
    	 padding :0;
    	 margin :0;
    }
    ul.gr {
         width:135px;
         padding:0;
    	 margin:0;
    	 list-style:none;
    	 font-size:10px;
    	 font-weight:bold;
    	 text-align:left;
    }
    ul.gr li a {
         display: block;
    	 color:#f946e6;
    	 outline:none;
    	 text-decoration: none;
    	 outline:none;
    }	
    ul.gr li a:hover {
          color: #ff95f4;
    	  outline:none;
    	  padding:0;
    	  margin:0 ;
    }	
    .menu_jaune_fond img , .menu_rose_fond img , .menu_bleu_fond img   {
    margin:3px 0 0 0;
    }
    /*cadre news*/
    .contenu_haut {
         width:624px;
    	 height:33px;
    	 background: url(images/contenu_haut.png);
    }
    .contenu_fond {
         width:584px;
    	 background: url(images/contenu_fond.png);
    	 padding :0 25px 0 15px;
    	 margin :0;
    	 color:#fff;
    } 
    .contenu_bas {
         width:624px;
    	 height:45px;
    	 background: url(images/contenu_bas.png) no-repeat;
    }  	
    /*copyright*/
    .copyright {
         color:#FFF;
    	 font-size:10px;
    	 font-weight:bold;
    	 text-align:right;
    	 margin:0 0 5px 0;
    }   
    .copyright a {
    	 color:#FFF;
    	 font-size:10px;
    	 font-weight:bold;
    	 text-decoration: none;
    	 outline:none:
    }
    .copyright a:hover   {
    	 color:#fdc322;
    } 
    Span {
    	 color:#1d9fe0;
    	 font-size:12px;
    	 font-weight:bold;
    }	
    img, p, h1, h2, h3, h4, h5, h6, Span, object, table, td, tr{
    	 border:0;
    	 margin:0;
    	 padding:0;
    }
    a  {
    	 color:WHITE;
    	 text-decoration:none;
    	 outline:none;
    	 font-weight:bold:
    }	 
    a:hover  {
    	 color:RED;
    }
    Et ma page 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
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
    <head>
    <title>Radio Quart d'Onde</title>			
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta http-equiv="content-language" content="fr" />
    <link href="style.css" title="Défaut" rel="stylesheet" type="text/css" media="screen" />	 
    </head>
    <body> 
     
    <div id="conteneur"><!-- Global -->
    <div id="header"><!-- Header -->
    <div id="mh"><!-- Menu horizontal -->
    <table summary="" cellpadding="0" cellspacing="0"> <tr><td> 
              <ul id="menu"> 
                  <li><a href="index.html">Accueil</a></li> 
                  <li><a href="historique.html">Historique</a></li> 
                  <li><a href="programmes.html">Grille programmes</a></li>
                  <li><a href="animateurs.html">Animateurs</a></li>
                  <li><a href="regie.html">Règie publicitaire</a></li>
    			  <li><a href="contact.html">Contactez-nous</a></li>
              </ul> 
    </td></tr></table>
    </div><!-- Fin Menu horizontal --> 
    </div><!-- Fin Header -->	
     
    <div id="left"> <!-- Colonne Gauche -->		 
    <div class="menu_bleu_haut">News</div><div class="menu_bleu_fond"><!-- Menu -->
             <ul class="gb"> 
    			News du site 
             </ul>
    </div><div class="menu_bleu_bas"></div><!-- Fin Menu --> 
     
    <div class="menu_bleu_haut">Evènements</div><div class="menu_bleu_fond"><!-- Menu -->
             <ul class="gj"> 
    			<a href="diner_dansant.html">Diner dansant avec Claude Barry</a>
             </ul>
    </div><div class="menu_bleu_bas"></div><!-- Fin Menu -->
     
    <div class="menu_bleu_haut">Partenaires</div><div class="menu_bleu_fond"><!-- Menu -->
    <div style="text-align: left">
    <a href="http://www.leschardons.net" target="_blank">MJ Les Chardons</a>
    <hr>
    <a href="http://www.maxfm.be" target="_blank">M@x FM</a> 
    <hr> 
    <a href="http://www.brugelette.be" target="_blank">Brugelette</a>
    <hr>
    <a href="http://www.federation-wallonie-bruxelles.be/" target="_blank">Communauté française</a>
    </div>
    </div><div class="menu_bleu_bas"></div><!-- Fin Menu --> 
     
    <a href="http://rqo.dyndns.org:8000/rqo.mp3.m3u"><img src="images/hp.png" width="128" height="128" alt="Ecoutez-nous" border="0"></a>
    <br>
    <div id="MonElement" class="EX_div" style="diplay:block;"> 
    <b><a href="http://rqo.dyndns.org:8000/rqo.mp3.m3u"><font color=#FF0000>Ecoutez-nous en direct</font></a></b>
    </div>
    <script>
    function clignotement(){
    if (document.getElementById("MonElement").style.display=="block")
    document.getElementById("MonElement").style.display="none";
    else
    document.getElementById("MonElement").style.display="block";
    }
    setInterval("clignotement()", 500);
    </script> 
     
    <br><br><br>
    </div><!-- Fin Colonne Gauche -->	
     
          <div id="center"><!-- Colonne Milieu -->	  
               <div class="contenu_haut"></div><div class="contenu_fond"><!-- Cadre -->
                    <div style="text-align: center"><span>Accueil</span></div>
    				<br><br> 
    				Bienvenue sur le site de Radio Quart d'Onde.
    				<br><br>
    				Vous pourrez y découvrir: 
    				<br><br>
    				- L'historique de Radio Quart d'Onde
    				<br>
    				- La grille des programmes
    				<br>
    				- La présentation des animateurs
    				<br>
    				- La régie publicitaire
    				<br>
    				- ...
    				<br><br>
    				Vous pourrez également nous écouter en direct, via notre site internet ou encore prendre contact avec l'équipe de Radio Quart d'Onde.
    				<br><br>
    				Bonne visite !	  
               </div><div class="contenu_bas"></div><!-- Fin Cadre -->	
    		   <div style="text-align: center"><img src="images/logo_rqo.jpg" width="250" height="150" alt="" border="0"></div>	
    		   <br><br>
          </div><!-- Fin Colonne Milieu -->										  
     
    <div id="pied"><!-- Pied --> 
     
    <!-- mention de copyright Ne pas retirer sans autorisation écrite -->
    <div class="copyright"><a href="mentions_legales.html">Mentions légales | </a> ©RQO 2012 | <a href="http://www.docteur-it.be" onclick="window.open(this.href); return false;" title="Docteur IT Jurbise" > Designed by Docteur IT Jurbise</a></div>
    <!-- mention de copyright Ne pas retirer sans autorisation écrite -->	
    </div><!-- Fin pied -->
    </div><!-- Fin Global -->
    </body>
    </html>
    Je souhaiterais simplement avoir +/- le rendu suivant, c'est à dire avoir le menu de gauche, également à droite (avec un contenu différent)

    http://www.rqo.be/images/untitled.jpg

    Comment faire ? J'ai essayé de rajouté un paramètre Right dans mon CSS, le menu se met bien à droite, mais sous le contenu de la page, et non à coté

    D'avance, merci à tous

  2. #2
    Modérateur

    Avatar de NoSmoking
    Homme Profil pro
    Inscrit en
    Janvier 2011
    Messages
    16 939
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2011
    Messages : 16 939
    Points : 44 109
    Points
    44 109
    Par défaut
    Bonjour,
    tu peux peut être t'inspirer de cette technique
    http://css.developpez.com/galerie/?p...se-en-page#mp4, en regardant comment est positionné le Bloc News

Discussions similaires

  1. Réponses: 5
    Dernier message: 07/07/2011, 09h22
  2. ajouter au menu 'clic droit' de windows
    Par sp2308 dans le forum Débuter
    Réponses: 3
    Dernier message: 05/02/2010, 01h57
  3. Ajouter un menu contextuel au bouton droit de la souris pour les textboxes
    Par LiNuXaDDiKt dans le forum Macros et VBA Excel
    Réponses: 2
    Dernier message: 03/01/2008, 10h30
  4. ajouter un menu a droite séparé des autres menus
    Par ulysse031 dans le forum AWT/Swing
    Réponses: 7
    Dernier message: 05/05/2007, 23h40
  5. Ajout de menu perso sur clique droit de la souris !!
    Par Kyp dans le forum Général JavaScript
    Réponses: 1
    Dernier message: 09/12/2005, 18h06

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