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 :

Complexité adaptative du terme "Responsive"


Sujet :

Responsive design en CSS

  1. #1
    Nouveau membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Février 2017
    Messages
    44
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 26
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2017
    Messages : 44
    Points : 34
    Points
    34
    Par défaut Complexité adaptative du terme "Responsive"
    Bonjour,
    Je sollicite votre aide ici car j'ai un problème particulièrement embêtant sur mon site :
    -J'ai créé plusieurs pages toutes jolies sur mon écran, mais lorsque je change d'écran, tout se décalle et le design devient vraiment très moche, donc j'ai fais quelques recherches et c'est dû à taille des écrans des ordinateurs qui peut être bien différente d'un ordinateur à un autre. Bref, il faut que j'applique des mediaqueries qui font référence à une plage de pixel correspondant à une plage de taille d'écrans de différents pc ( par exemple : "<link rel="stylesheet" media="screen and (min-device-width:1301px) and (max-device-width:1400px)" href="mainMin1301.css" type="text/css" />" cette balise permet de basculer à un css différent si notre écran se situe entre 1301px et 1400px ).
    Le problème c'est qu'au final je suis obligé de faire une dizaine de css différent qui correspondent tous à une plage de pixel différent ( portables, tablettes, pc portables, pc fixes ), ce qui fait beaucoup de code à copier et légèrement modifier. De plus, j'ai fais quelques recherches et les autres personnes font des mediaqueries qui ont une plage de pixel de 200-300, mais moi je suis obligé de faire des plages de 100pixel ce qui fait que ça fait encore + de code à copier/modifier.
    Voici un extrait de mon site ( page principale ) où l'on peut voir les différences selon la taille de l'écran ( la version optimisée est la version sur laquelle je travaille c'est à dire min:1301px et max:1400px.
    Code html : 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
    <?php
    session_start();
    ?>
    <html>
    <head>
     
    <meta charset="utf-8"/ >
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel ="stylesheet" href = "main.css" type = "text/css">
    <link rel="stylesheet" media="screen and (min-device-width:768px) and (max-device-width:1023px)" href="mainMin768.css" type="text/css" />
    <link rel="stylesheet" media="screen and (min-device-width:1024px) and (max-device-width:1300px)" href="mainMin1024.css" type="text/css" />
    <link rel="stylesheet" media="screen and (min-device-width:1301px) and (max-device-width:1400px)" href="mainMin1301.css" type="text/css" />
    <link rel="stylesheet" media="screen and (min-device-width:1401px)" href="mainMin1401.css" type="text/css" />
     
        <title>InfobisPro</title>
     
          </head>
     
    <body style="background-color: black; color:white;">
    <script type="text/javascript"> 
    function ConfirmMessage() {
        if (confirm("Voulez-vous modifier ce client ?")){
            alert("Le client a bien été modifié !");
            window.location.assign('v_liste.php');
        }
    }
    </script>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <div id = "bienvenueMaintenance">
        <h1>Bienvenue sur la page de gestion des contrats de maintenance !</h1><br>
    </div>
    <?php 
        if(isset($_POST['liste1']))
        { 
    //si la liste a été "postée" c'est à dire choix fait 
        $liste1=$_POST['liste1']; 
            }else{ 
                $liste1=-1; 
        } 
        
    ?>
    <form method="post" action="v_liste.php">
              <INPUT class ="boutonRetour" TYPE="submit" value="RETOUR"/>
     
    </form>   
     
    <h2 style ="color:white; text-align:center; ">Selectionnez le nom du client dans la liste ci-dessous :</h2><br>
    <form id="selectionNomMaintenance" name ="selectionNomMaintenance" method= "POST" action="v_contratMaintenance.php">
    <select name = "liste1" class="liste1" onchange="selectionNomMaintenance.submit();">
        <option value =-1> -- Choisissez -- </option>
    <?php
     
    $base = mysql_connect('localhost','root','');
    mysql_select_db('fichesclients', $base);
    $requete = 'SELECT societeClient FROM infoclient WHERE typeContrat="Maintenance"';
    $exec_req = mysql_query($requete);
    while ($data = mysql_fetch_array($exec_req))
        {
            echo "<option value=\"".$data["societeClient"]."\"";
            if($liste1==$data['societeClient']){ echo "selected";}//pour garder la selection lors du réaffichage
                echo ">".$data['societeClient']."</option>\n";
        }
     
    ?>
        </select></form>
     
    <?php
     
    if($liste1 != -1){
        $requete = "SELECT idClient, societeClient, nomClient, prenomClient, telephoneMobileClient, telephoneFixeClient, adresseClient, emailClient, dateContratClient, typeContrat, notesClient FROM infoclient WHERE societeClient ='".$liste1."'";
        $exec_req =mysql_query($requete);
        $data = mysql_fetch_array($exec_req);
     
    ?>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >    
    <form action ="v_contratMaintenance.php" class="input-group2" method ="POST">
        <input name="idClient" type ="hidden" value="<?php echo $data['idClient'];?>"><br>
        <input style ="text-align:center;" type="text" name="societeClient" value="<?php echo $data['societeClient']; ?>"/><br><br>
        <input style ="text-align:center;" type="text" name="nomClient" value="<?php echo $data['nomClient']; ?>" /><br><br>
        <input style ="text-align:center;" type="text" name="prenomClient" value="<?php echo $data['prenomClient']; ?>" /><br><br>
        <input style ="text-align:center;" type="tel" name="telephoneMobileClient" maxlength="10" value="<?php echo $data['telephoneMobileClient']; ?>"/><br><br>
        <input style ="text-align:center;" type="tel" name="telephoneFixeClient" maxlength="10" value="<?php echo $data['telephoneFixeClient']; ?>"/><br><br>
        <input style ="text-align:center;" type="text" name="adresseClient" value="<?php echo $data['adresseClient']; ?>"/><br><br>
        <input style ="text-align:center;" type="email" name="emailClient" value="<?php echo $data['emailClient']; ?>"/><br><br>
        <input style ="text-align:center;" type="date" name="dateContratClient" value="<?php echo $data['dateContratClient']; ?>"/><br><br>
        <input style ="text-align:center;" disabled="disabled" type="text" name="typeContrat" placeholder ="<?php echo $data['typeContrat']; ?>" value ="<?php $data['typeContrat']; ?>"> <br><br>
        <center><textarea name="notesClient" resize="none" rows="8" cols="30" value="<?php echo $data['notesClient']; ?>" placeholder="<?php echo $data['notesClient']; ?>"></textarea></center><br>
        <input type="reset" value="Reset"/>
        <input type="submit" name="modifierClient" value="Modifier" onClick="ConfirmMessage()"/>
     
     
    </form>
     
    <?php
     
     }    
    if (isset($_POST['modifierClient']))
    {
        $cnx = mysql_connect("localhost", "root", "");
        $db = mysql_select_db("fichesclients");
        $idClient = $_POST["idClient"];
        $societeClient = $_POST['societeClient'];
        $nomClient = $_POST['nomClient'];
        $prenomClient = $_POST['prenomClient'];
        $telephoneMobileClient = $_POST['telephoneMobileClient'];
        $telephoneFixeClient = $_POST['telephoneFixeClient'];
        $adresseClient = $_POST['adresseClient'];
        $emailClient = $_POST['emailClient'];
        $dateContratClient = $_POST['dateContratClient'];
        $notesClient = $_POST['notesClient'];
     
        $sql = "UPDATE infoclient SET societeClient = '$societeClient', nomClient = '$nomClient', prenomClient = '$prenomClient', telephoneMobileClient = '$telephoneMobileClient', telephoneFixeClient = '$telephoneFixeClient', adresseClient ='$adresseClient', emailClient = '$emailClient', dateContratClient = '$dateContratClient', notesClient = '$notesClient' WHERE idClient = '$idClient'";
        
    $requete = mysql_query($sql, $cnx) or die (mysql_error());
       
    }
     
    ?>
     
    </body>
    </html>

    Et le css qui va avec :
    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
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    @charset "utf-8";
    @media screen and (min-device-width:1401px){
     
    #onglets
    {
        font : bold 24px Helvetica;
        list-style-type : none;
        padding-bottom : 0.27%;
        margin-left :88%;
        margin-top : -1px;
    }
     
    #onglets li
    {
        float : left;
        height : 25px;
        background-color : black;
        margin : 1px 7px 0px 20px;
    }
     
    #onglets a
    {
        display : block;
        color : white;
        text-decoration : none;
    }
     
    #onglets a:hover
    {
        background : red;
    }
     
    #menu
    {
        border-bottom : 2px solid red;
        border-top : 2px solid red;
    }
     
     
    /*bloc 
    {
    	float:right;
        margin-right: 28%;
        margin-top: 20%;
    	width:660px;
    	height:250px;
    	background-color:red;
    }*/
     
    #bloc1
    {
       	float:right;
       	display: block;
       	margin-right: 59%;
       	margin-top: -20%;
       	width:14%;
       	height: 24%;
       	background-color:black;
       	border-left: 3px solid red;
       	border-top: 3px solid red;
       	border-bottom: 3px solid red;
       	border-right: 3px solid red;
       	font-family:Helvetica;
       	font-weight: bold;
       	line-height: 6em;
       	text-align: center;
    } 
     
    #bloc2
    {
       	float:right;
       	display: block;
       	margin-right: 43%;
       	margin-top: -20%;
       	width:14%;
       	height: 24%;
       	background-color:black;
       	border-top: 3px solid red;
       	border-bottom: 3px solid red;
       	border-right: 3px solid red;
       	border-left: 3px solid red;
       	font-family:Helvetica;
       	font-weight: bold;
       	line-height: 11em;
       	text-align: center;
    }
     
    #bloc3
    {
        float:right;
        display: block;
        margin-right: 27%;
        margin-top: -20%;
        width:14%;
        height: 24%;
        background-color:black;
        border-right: 3px solid red;
        border-top: 3px solid red;
        border-bottom: 3px solid red;
        border-left: 3px solid red;
        line-height: 6em;
        font-family:Helvetica;
        font-weight: bold;
        text-align: center;
    }
     
    #bloc4
    {
        float:right;
        display: block;
        width:34%;
        height: 6%;
        background-color:black;
        margin-right: 33%;
        margin-top: -5%;
        border-right: 3px solid red;
        border-top: 3px solid red;
        border-bottom: 3px solid red;
        border-left: 3px solid red;
        line-height: 0.4;
        font-family:Helvetica;
        font-weight: bold;
        text-align: center;
    }  
     
    #bloc5
    {
        float:right;
        display: block;
        width:34%;
        height: 6%;
        background-color:black;
        margin-right: 33%;
        border-right: 3px solid red;
        border-top: 3px solid red;
        border-bottom: 3px solid red;
        border-left: 3px solid red;
        line-height: 0.4;
        font-family:Helvetica;
        font-weight: bold;
        text-align: center;
    }
     
    h1
    {
        color:white;
    }
     
    a:link 
    { 
     text-decoration:none; 
    } 
     
    textarea
    { 
        resize:none;
    }
     
    .conteneurAccueil
    {
        max-width: 100%;
    }
     
    .baliseConteneurAccueil
    {
        position:absolute;
        margin-left: 20%;
    }
     
    #Bienvenue
    {
        position:absolute;
        left:28%; 
        top:10%; 
        font-weight: bold;
    }
     
    form.input-group
        {
            border-left:4px solid red; 
            border-bottom:4px solid red; 
            border-right:4px solid red; 
            border-top:4px solid red; 
            margin-left:38.5%; 
            margin-top:5em; 
            text-align:center; 
            height:58%; 
            width:22%; 
            font :bold 18px Helvetica;
        }
     
    form.input-group1
        {
            border-left:4px solid red; 
            border-bottom:4px solid red; 
            border-right:4px solid red; 
            border-top:4px solid red; 
            margin-left:38.5%; 
            margin-top:5em; 
            text-align:center; 
            height:65%; 
            width:22%; 
            font :bold 18px Helvetica;
        }
     
    form.input-group2
        {
            border-left:4px solid red; 
            border-bottom:4px solid red; 
            border-right:4px solid red; 
            border-top:4px solid red; 
            margin-left:38.5%; 
            margin-top:1em; 
            text-align:center; 
            height:65%; 
            width:22%; 
            font :bold 18px Helvetica;
        }
     
    form.input-group3
        {
            border-left:4px solid red; 
            border-bottom:4px solid red; 
            border-right:4px solid red; 
            border-top:4px solid red; 
            margin-left:38.5%; 
            margin-top:5em; 
            text-align:center; 
            height:20%; 
            width:17%; 
            font :bold 18px Helvetica;
        }
     
    #Bienvenue
    {
        text-align:center;
        margin-left:-8%;
        font:bold 20px Helvetica;
    }
     
    .titre
    {
        text-align: center;
        font:bold 20px Helvetica;
        margin-top: 3em;
    }
     
    #bienvenueMaintenance{
     
        font :bold 18px Helvetica;
        margin-top: 3%;
        text-align: center;
    }
     
    #selectionNomMaintenance{
        text-align:center;
    }
     
    .liste1{
        width:150px;
        height:50px;
        font :bold 18px Helvetica;
    }
     
    .validerMaintenance{
        margin-top: 3%;
        margin-left: auto;
        margin-right: auto;
        width:100px;
        height:45px;
        font :bold 18px Helvetica;
    }
     
     
     
    tr
    {
     
        border : 3px solid red;
        font :bold 18px Helvetica;
    }
     
    th,td
    {   
        width:26%;
        text-align: center;
    }
     
    th
    {
        color: white;
        background-color: black;
        border : 3px solid red;
        font :bold 18px Helvetica;
    }
     
    table
    {   
        margin-left:10.4%;
        margin-top:2%;
        border-collapse: collapse;
        width:60%;
    }
     
    #tableMaintenance{
        margin:auto;
        margin-top: 4%;
    }
     
     
    #modifierMaintenance
    {
        height:5%;
        width:8%;
        margin-left:46%;
        margin-top:1%;
        font :bold 18px Helvetica;
    }
     
     
     
    label
    {
        float: left;
        display: block;
        width:200px;
    }
     
    .buttonCon 
    {
        position:absolute;
        margin-left: 15%;
        margin-top: 2%;
        background-color: black; 
        color: white; 
        border: 2px solid red;  
    }
     
    .buttonCon:hover 
    {
        background-color: red;
        color: black;
    }
     
    .boutonRetour
    {
        position: absolute;
        background-color: black;
        color:white;
        border: 2px solid red;  
        margin-left: 55%;
        margin-top: 6%;
    }
     
    .boutonRetour:hover 
    {
        background-color: red;
        color: black;
    }
     
    .boutonRetourCal
    {
        position: absolute;
        background-color: black;
        color:white;
        border: 2px solid red;  
        margin-left: 74%;
        margin-top: 3.4%;
        width:14.9%;
        height:2.7%;
        font :bold 18px Helvetica;
    }
     
    .boutonRetourCal:hover 
    {
        background-color: red;
        color: black;
    }
     
    .boutonValiderCal
    {
        background-color: black;
        color:white;
        border: 2px solid red;
        font :bold 18px Helvetica;
    }
     
    .boutonValiderCal:hover 
    {
        background-color: red;
        color: black;
    }
     
    .boutonDeleteCal    
    {
        background-color: black;
        color:white;
        border: 2px solid red;  
        margin-left: 74.7%;
        margin-top:-10.7%;
        width:15.1%;
        height:2.8%;
        font :bold 18px Helvetica;
    }
     
    .boutonDeleteCal:hover 
    {
        background-color: red;
        color: black;
    }    
    .boutonRetour1
    {
        position: absolute;
        background-color: black;
        color:white;
        border: 2px solid red;  
        margin-left: 48.85%;
        margin-top: 12.75%;
    }
     
    .boutonRetour1:hover 
    {
        background-color: red;
        color: black;
    }
     
    .boutonResetForm
    {
        position: absolute;
        background-color: black;
        color:white;
        border: 2px solid red;  
        margin-left: -8.2em;
    }
     
    .boutonResetForm:hover 
    {
        background-color: red;
        color: black;
    } 
     
    .boutonValiderForm
    {
        position: absolute;
        background-color: black;
        color:white;
        border: 2px solid red;  
        margin-left: -3.2em;
    }
     
    .boutonValiderForm:hover 
    {
        background-color: red;
        color: black;
    }
     
    .inputCal{
        background-color:black;  
        border-color: white;
        font-size: 15px;   
        color:white;
    }
     
    }
    Voilà, j'espère m'être pas trop mal exprimé et que vous allez comprendre mon réel problème d'adaptation de tailles d'écran, merci d'avance !

  2. #2
    Membre régulier
    Homme Profil pro
    Intégrateur Web
    Inscrit en
    Juillet 2016
    Messages
    65
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 29
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Intégrateur Web

    Informations forums :
    Inscription : Juillet 2016
    Messages : 65
    Points : 103
    Points
    103
    Par défaut
    Mais du coup quelle est ta question en faite ?

  3. #3
    Nouveau membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Février 2017
    Messages
    44
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 26
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2017
    Messages : 44
    Points : 34
    Points
    34
    Par défaut
    C'est vrai que ma question était un peu trop implicite...
    Comment je fais pour avoir le moins de modifications à faire pour que le design reste quasiment le même d'un écran à un autre ? Par exemple définir "width=100%;" dans la plupart des mes div ou balises...
    Et j'ai une autre petit question : lorsque j'essaie d'enregistrer mes données dans une BDD suite au remplissage d'un formulaire, les accents/ caractères spéciaux ne sont pas pris en compte malgré le metacharset utf8 dans tous les <head> de mes pages, par exemple le mot "écrire" va être enregistré comme "A@crire", peut être cela vient du fait que j'utilise Brackets comme éditeur de code, je n'ai absolument aucune idée. Merci d'avance !

  4. #4
    Membre éclairé Avatar de Geoffrey74
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mars 2007
    Messages
    515
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 37
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2007
    Messages : 515
    Points : 760
    Points
    760
    Par défaut
    Salut,
    pourquoi ne pas mettre des valeurs en % afin qu'elles s'adaptent automatiquement à la largeur ?

  5. #5
    Nouveau membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Février 2017
    Messages
    44
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 26
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2017
    Messages : 44
    Points : 34
    Points
    34
    Par défaut
    Toutes les valeurs qui posent problèmes ( bloc1, bloc2, bloc3, etc...) sont déjà en % ou em c'est pour ça que j'arrive pas trop à comprendre et ça m'agace beaucoup de faire 50 css différents pour tous les 100 pixels en plus par rapport aux écrans

  6. #6
    Membre éclairé Avatar de Geoffrey74
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mars 2007
    Messages
    515
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 37
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2007
    Messages : 515
    Points : 760
    Points
    760
    Par défaut
    J'ai vu dans ton code css que tu as des margin en % sur les blocs, je pense que c'est ça qui pose problème, essai de les définir en px

  7. #7
    Expert éminent sénior
    Avatar de mathieu
    Profil pro
    Inscrit en
    Juin 2003
    Messages
    10 232
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2003
    Messages : 10 232
    Points : 15 525
    Points
    15 525
    Par défaut
    le plus pratique pour avoir un affichage responsif facile à maintenir est de partir d'une base CSS soit pour les grands écrans soit les petits écrans.
    et ensuite vous faites différentes règles dans des fichiers séparés pour gérer les autres largeurs

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

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