
Forum » » Le coin des codeurs » » responsive machinchose
Posté : 29-03-2013 22:41 
echo '<meta name="viewport" content="width=device-width,&nb sp;maximum-scale=1"/>';
/*la suite n agit que si l 'ecran fai t moins de XXXpx */
@media (max-width: 920px){
/**************************************************************** ********
Aspect Général du site : Font, Textes, M arges, etc...
*************************************************************************/
body {
font-family: Arial, Helvetica, sans-se rif;
font-size: 0.75em;
}
#col_LB {
/* on cache les blocs de&nbs p;gauches */
display: none;
}
#col_RB { /* Là où se trouvent vos Bloc s droits*/
/* on cache les blocs de&nbs p;droites */
display: none;
}
#container {
text-align:center;
margin-left:0;
margin-right:0;
width:985px;
}
#header { /* Ici - Le Header Complet avec Image de Fond */
background: !url(!../images/2header.jpg);
background-size: 985px 180px;
height: 180px;
width: 985px;
}
#header .slogan { /*Positionnement du Slogan du Site dans le Header*/
text-align: left;
color: #ffff00;
font-size: 4em;
font-weight: bold;
font-family: Arial, Helvetica, sans-se rif;
margin: 0px;
padding: 15px 0px 0px 0px;
}
#header .menuHG{ /*Positionnement du bloc menu Haut Gauche du Site dans le Header*/
position: relative;
text-align: left;
line-height: 20px;
color: #ffffff;
font-size: 3.0em;
font-weight: bold;
font-family: Georgia, "Times New Roman", serif;
padding: 0px 0px 0px 0px;
}
etc.....
Cet article provient de NPDS REvolution 16
https://lab.grottes-et-karsts-de-chine.org/viewtopic.php?topic=25783&forum=5