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 :

Police non prise en compte


Sujet :

CSS

  1. #1
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Octobre 2014
    Messages
    25
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 31
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Arts - Culture

    Informations forums :
    Inscription : Octobre 2014
    Messages : 25
    Points : 10
    Points
    10
    Par défaut Police non prise en compte
    Bonjour,

    cette discussion fait suite à https://www.developpez.net/forums/d2...s-navigateurs/

    merci encore pour avoir jeté un œil à mes problèmes.
    J'ai pu regarder ce que ASCIIDEFOND me proposais aujourd'hui, et j'ai réussi à l'adapter pour lui donner la forme que je voulais.
    Je teste sur mes navigateurs (safari, chrome, opéra et firefox) en local, en glissant mon fichier index.html directement dans le navigateur et tout fonctionne.

    Lorsque je transfère les fichiers de mon site à l'aide de filezilla (j'ai pris un hébergement et un nom de domaine chez hostinger) pour le mettre en ligne, les choses ne s'affichent pas du tout de la même façon... Et le site est illisible et inutilisable.
    Je ne comprends pas pourquoi se produit un tel changement.

    Apparence du site lorsque je teste en local
    Nom : Capture d’écran 2023-09-15 à 19.06.36.jpg
Affichages : 157
Taille : 420,2 Ko

    Apparence du site lorsque je le met en ligne
    Nom : Capture d’écran 2023-09-15 à 19.08.47.png
Affichages : 156
Taille : 1,31 Mo

    Merci pour votre aide et votre patience

  2. #2
    Membre averti Avatar de ASCIIDEFOND
    Homme Profil pro
    Autodidacte passionné
    Inscrit en
    Novembre 2002
    Messages
    235
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Landes (Aquitaine)

    Informations professionnelles :
    Activité : Autodidacte passionné

    Informations forums :
    Inscription : Novembre 2002
    Messages : 235
    Points : 441
    Points
    441
    Par défaut
    Y a-t-il une famille de police de caractère défini dans ton code CSS ?

    ex.
    Code CSS : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    body {
      font-family: Arial, sans-serif;
    }

  3. #3
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Octobre 2014
    Messages
    25
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 31
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Arts - Culture

    Informations forums :
    Inscription : Octobre 2014
    Messages : 25
    Points : 10
    Points
    10
    Par défaut
    Oui, j'ai bien appelé une police de caractère, comme suit :

    Code CSS : 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
     /* APPEL DE LA POLICE DE CARACTERES */
     
            @font-face {
                font-family: "maintype";
                src: url("../types/HuttemonoV1-Regular.otf");
            }
     
     
            * {
                box-sizing: border-box;
            }
     
            html, body {
                font-family: "maintype", sans-serif;
                width: 100%;
                height: 100%;
                border: 0 none;
                margin: 0;
                padding: 0;
                vertical-align: baseline;
            }

  4. #4
    Membre averti Avatar de ASCIIDEFOND
    Homme Profil pro
    Autodidacte passionné
    Inscrit en
    Novembre 2002
    Messages
    235
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Landes (Aquitaine)

    Informations professionnelles :
    Activité : Autodidacte passionné

    Informations forums :
    Inscription : Novembre 2002
    Messages : 235
    Points : 441
    Points
    441
    Par défaut
    Et comme ça ?

    Code CSS : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    @font-face {
        font-family: "HuttemonoV1";
        src: url("../types/HuttemonoV1-Regular.otf") format("opentype");
        font-weight: normal;
        font-style: normal;
     }
     
     html {
        font-family: "HuttemonoV1";
    }

    Le chemin de l'url est bien correct sur ton serveur.

  5. #5
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Octobre 2014
    Messages
    25
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 31
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Arts - Culture

    Informations forums :
    Inscription : Octobre 2014
    Messages : 25
    Points : 10
    Points
    10
    Par défaut
    Bonjour,

    J'ai appliqué vos conseils et le résultat est toujours le même.
    C'est comme si le script ne s'appliquait pas...
    Dois-je appeler dans mon html la bibliothèque jquery pour que le style fonctionne ?

  6. #6
    Membre averti Avatar de ASCIIDEFOND
    Homme Profil pro
    Autodidacte passionné
    Inscrit en
    Novembre 2002
    Messages
    235
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Landes (Aquitaine)

    Informations professionnelles :
    Activité : Autodidacte passionné

    Informations forums :
    Inscription : Novembre 2002
    Messages : 235
    Points : 441
    Points
    441
    Par défaut
    Ce code fonctionne bien chez moi en local mais avec cette police "Kaushan Script" téléchargée sur https://www.fontsquirrel.com/fonts/list/popular
    Code CSS : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
            @font-face {
                font-family: 'Kaushan Script';
                src: url('types/KaushanScript-Regular.otf') format('opentype');
                font-weight: normal;
                font-style: normal;
            }
     
            html {
                font-family: "Kaushan Script";
            }

    Si avec la police "HuttemonoV1-Regular.otf" ça fonctionne en local mais pas sur ton serveur, il faut peut-être regarder au niveau des attributs et droits d'accès qui sont accordés au répertoire "types".

    Voir ici pour les droits d'accès des fichiers et des dossiers: https://support.hostinger.fr/fr/arti...t-les-dossiers

    Sinon, je ne pense pas que JQuery résoudra ce problème.

  7. #7
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Octobre 2014
    Messages
    25
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 31
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Arts - Culture

    Informations forums :
    Inscription : Octobre 2014
    Messages : 25
    Points : 10
    Points
    10
    Par défaut
    Merci je vais regarder cela aujourd'hui.

  8. #8
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Octobre 2014
    Messages
    25
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 31
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Arts - Culture

    Informations forums :
    Inscription : Octobre 2014
    Messages : 25
    Points : 10
    Points
    10
    Par défaut
    Citation Envoyé par ASCIIDEFOND Voir le message
    Sinon, je ne pense pas que JQuery résoudra ce problème.
    Bonjour,

    j'ai essayé avec une autre police de caractère et le problème persiste..
    Je suis aussi aller voir les doits d'accès sur hostinger comme filezilla mais cela n'a rien changé non plus.

    Peut-être que le problème est apparu en modifiant un peu le code que tu m'as suggéré.
    Je me permets donc de le remettre ici.

    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
    <!DOCTYPE html>
    <html>
     
    <head>
        <title>Duo Impair</title>
        <link rel="icon" type="image/x-icon" href="images/favimpair.png">
          <meta charset="UTF-8" />
        <meta name="Author" content="Duo Impair">
        <meta name="Description" content="Duo Impair, french graphic design studio.">
        <meta name="Keywords" content="Graphic Design, Art Direction, Typography, Research, Photography">
        <meta name="viewport" content="width=device-width, initial-scale=1">
     
        <link rel='stylesheet' id='style-css'  href='styles/style.css' type='text/css' media='all' />
     
    </head>
     
    <body>
     
    <!--------------------------------------------- Haut de Page --------------------------------------------->
     
        <header role="header">
            <nav class="menu" role="sections">
                <div clas="inner">
                    <div class="m-left">
                        <h1 class="logo">DUO IMPAIR &emsp; Graphic Design Studio</h1>
                    </div>
                    <div class="m-right">
                        <a href="index.html" class="m-link" style="color: blue">Projects</a>
                        <a href="info.html" class="m-link">About</a>
                    </div>
                </div>
        </header>
     
        <!--------------------------------------------- Images et légendes --------------------------------------------->
     
     
        <div class="row">
            <div class="column">
                <img class="carrousel" src="images/Image1.jpg" width="400" height="auto" />
                <div></div>
            </div>
            <div class="column">
                <img class="carrousel" src="images/Images2.jpg" width="400" height="auto" />
                <div></div>
            </div>
        </div>
     
        <div>
            <a class="prev arrow"></a>
            <a class="next arrow"></a>
        </div>
     
    <!--------------------------------------------- Script --------------------------------------------->
     
        <script>
            const slides = [
                { nameimg: "HutteSite1.jpg", info: "<p>Hutte Mono (Regular & Swash), Type Design, 2023.</br>The font design was inspired by the regular shapes defined by mono typefaces together with rounded terminals. Hutte is taking a step aside from the common monospace fonts with the Swash version that plays with the spacing, the ornaments and the flourishing aspects of the letters.</p>" },
                { nameimg: "HutteSite2.jpg", info: "<p>Hutte Mono (Regular & Swash), Type Design, 2023.</br>The font design was inspired by the regular shapes defined by mono typefaces together with rounded terminals. Hutte is taking a step aside from the common monospace fonts with the Swash version that plays with the spacing, the ornaments and the flourishing aspects of the letters.</p>" },
                { nameimg: "Bushel3.jpg", info: "<p>Bushels of Goodness and Warmth, Graphic design, Layout, 2022 [with Jordan Derrien and V.O Curations Gallery (London)]<br/>Catalogue of the exhibition: Bushels of goodness by the artist Jordan Derrien. With a text written by Marie de Brugerolle and photographies taken by Theo Christelis.</p>" },
                { nameimg: "Bushel4.jpg", info: "<p>Bushels of Goodness and Warmth, Graphic design, Layout, 2022 [with Jordan Derrien and V.O Curations Gallery (London)]<br/>Catalogue of the exhibition: Bushels of goodness by the artist Jordan Derrien. With a text written by Marie de Brugerolle and photographies taken by Theo Christelis.</p>" },
                { nameimg: "SupaVenezia1.jpg", info: "<p>SupaVenezia Cap, Identity, Graphic Design, 2022 [with the artist Sarah Staton]<br/>SupaVenezia is part of SupaStore the event based durational artwork of the artist Sarah Staton, an ongoing series of stores as exhibitions established in 1993. We used the Brizeux font designed by Roman Seban and Véfa Lucas.</p>" },
                { nameimg: "SupaVenezia2.jpg", info: "<p>SupaVenezia Cap, Identity, Graphic Design, 2022 [with the artist Sarah Staton]<br/>SupaVenezia is part of SupaStore the event based durational artwork of the artist Sarah Staton, an ongoing series of stores as exhibitions established in 1993. We used the Brizeux font designed by Roman Seban and Véfa Lucas.</p>" }
            ]
     
            let arrows = document.querySelectorAll('.arrow'),
                imgA = document.getElementsByClassName("carrousel")[0],
                imgB = document.getElementsByClassName("carrousel")[1],
                i = 0
     
            function actualisation() {
                imgA.src = `images/${slides[i].nameimg}`
                imgA.nextElementSibling.innerHTML = slides[i].info
     
                if (!window.matchMedia("(max-width: 960px)").matches) {              
                    if (i + 1 >= slides.length) i -= 1
                    imgB.parentElement.style.display = "block"
                    imgB.src = `images/${slides[i + 1].nameimg}`
                    imgB.nextElementSibling.innerHTML = slides[i + 1].info
                } else {
                    imgB.parentElement.style.display = "none"
                }
            }
     
            for (const arrowSelect of arrows) {
                arrowSelect.addEventListener("click", () => {
                    let ii
                    // ici une condition if else ('?' -> 'alors' et ':' -> 'sinon')
                    // Si matches -> ii = 1 sinon ii = 2
                    window.matchMedia("(max-width: 960px)").matches ? ii = 1 : ii = 2
                    arrowSelect.classList.contains('prev') == true ? slides[i - ii] ? i -= ii : i = slides.length - ii : slides[i + ii] ? i += ii : i = 0
     
                    actualisation()
                })
            }
     
            window.onresize = actualisation;
     
            actualisation()
        </script>
     
    </body>
    </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
    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
     
           /* APPEL DE LA POLICE DE CARACTERES */
     
            @font-face {
                /*font-family: "maintype";
                src: url("../types/HuttemonoV1-Regular.otf");*/
                font-family: "HuttemonoV1";
                src: url("../types/HuttemonoV1-Regular.otf") format("opentype");
                font-weight: normal;
                font-style: normal;
            }
     
     
            * {
                box-sizing: border-box;
            }
     
            html, body {
                /*font-family: "maintype", sans-serif;*/
                font-family: "HuttemonoV1";
                width: 100%;
                height: 100%;
                border: 0 none;
                margin: 0;
                padding: 0;
                vertical-align: baseline;
            }
     
    /* -------------------------------------- HEADER NOM DU STUDIO ET ONGLETS DE SECTIONS DU SITE INTERNET -------------------------------------- */
     
            .menu{
                width: 100%;
            }
     
            .inner {
                width: 100%;
            }
     
     
            .m-left{
                float: left;
            }
     
     
            .logo{
                margin: 0;
                padding-left: 15px;
                padding-right: 15px;
                /*font-family: "maintype";*/
                font-family: "HuttemonoV1";
                font-weight: normal;
                font-size: 20px;
            }
     
     
            .m-right{
                float: right;
            }
     
            .m-link{
                text-decoration: none;
                color: black;
                text-transform: uppercase;
                font-weight: normal;
                font-size: 20px;
                margin:0;
                padding-left: 15px;
                padding-right: 15px;
            }
     
            .m-link:hover {
                color: blue;
            }
     
     
     
    /* --------------------------------------------- CARROUSEL ---------------------------------------------*/
     
     
            .column {
                height: auto;
                float: left;
                padding: 0 20px 0 0;
                width: 49%;
            }
     
            .carrousel {
                margin-left: 5%;
            }
     
            p {
                font-size: 13px;
                line-height: 1.2em;
            }
     
            .column:nth-child(1) {
                float: inline-start;
                margin: 0 auto 15px auto;
            }
     
            .column:nth-child(2) {
                float: inline-end;
                margin: auto;
            }
     
            .row {
                position: absolute;
                top: 45px;
                left: 4%;
                right: 4%;
                padding-bottom: 55px;
            }
     
            .row:after {
                content: "";
                display: table;
                clear: both;
            }
     
    /* --------------------------- RESPONSIVE POUR LARGEUR MAX 960px -------------------------------------- */
     
            @media screen and (max-width: 960px) {
     
                .column {
                    width: 100%;
                }
     
                .carrousel {
                    margin-left: 25%;
                }
     
                img {
                    width: 50%;
                    height: auto;
                    object-fit: cover;
                    object-position: center;
                }
     
            }
     
    /* --------------------------- RESPONSIVE POUR LARGEUR MAX 720px -------------------------------------- */
     
            @media screen and (max-width: 720px) {
     
                .inner {
                    width: 100%;
                }
     
     
                .menu{
                    width: 100%;
                }
     
                .m-left{
                    float: left;
                }
     
     
                .logo{
                    margin: 0;
                    padding-left: 15px;
                    /*font-family: "maintype";*/
                    font-family: "HuttemonoV1";
                    font-weight: normal;
                    font-size: 15px;
                }
     
     
     
                .m-right{
                    display: block;
                    float: left;
                }
     
                .m-link{
                    text-decoration: none;
                    color: black;
                    text-transform: uppercase;
                    font-weight: normal;
                    font-size: 15px;
                    margin: 0;
                    padding-left: 15px;
                    padding-right: 15px;
                }
     
                .m-link:hover {
                    color: blue;
                }
     
                .column {
                    width: 100%;
                }
     
                 .carrousel {
                    margin-left: 22%;
                }
     
                img {
                    width: 60%;
                    height: auto;
                    object-fit: cover;
                    object-position: center;
                }
     
            }
     
    /* --------------------------- RESPONSIVE POUR LARGEUR MAX 525px -------------------------------------- */
     
            @media screen and (max-width: 525px) {
     
            .inner {
                    width: 100%;
                }
     
     
                .menu{
                    width: 100%;
                }
     
                .m-left{
                    float: left;
                }
     
     
                .logo{
                    margin: 0;
                    padding-left: 15px;
                    /*font-family: "maintype";*/
                    font-family: "HuttemonoV1";
                    font-weight: normal;
                    font-size: 15px;
                }
     
     
     
                .m-right{
                    display: block;
                    float: left;
                }
     
                .m-link{
                    text-decoration: none;
                    color: black;
                    text-transform: uppercase;
                    font-weight: normal;
                    font-size: 15px;
                    margin: 0;
                    padding-left: 15px;
                    padding-right: 15px;
                }
     
                .m-link:hover {
                    color: blue;
                }
     
                .row {
                position: absolute;
                top: 60px;
                left: 4%;
                right: 4%;
                padding-bottom: 55px;
            }
        }
     
    /* --------------------------------------------- FLECHES DE NAVIGATION --------------------------------------------- */
     
            /*.footer {
                position: fixed;
                left: 0;
                bottom: 0;
                width: 100%;
                text-align: center;
            }*/
     
            /*.nav {
                display: inline-flex;
                background-color: red;
            }*/
     
            .arrow {
                position: absolute;
                cursor: pointer;
                color: black;
                font-weight: bold;
                font-size: 2.5em;
                transition: 0.2s ease;
                user-select: none;
                opacity: 0.7;
                margin: 0 2% 0 2%;
                bottom: 50%;
                width: 2%;
            }
     
            .arrow:active {
                color: blue;
            }
     
            .arrow:hover {
                opacity: 1;
            }
     
            .prev {
                left: 0px;
            }
     
            .next {
                right: 0px;
            }
     
            .prev::before {
                content: "\0023F4";
            }
     
            .next::before {
                content: "\0023F5";
            }
    Encore merci

  9. #9
    Membre averti Avatar de ASCIIDEFOND
    Homme Profil pro
    Autodidacte passionné
    Inscrit en
    Novembre 2002
    Messages
    235
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Landes (Aquitaine)

    Informations professionnelles :
    Activité : Autodidacte passionné

    Informations forums :
    Inscription : Novembre 2002
    Messages : 235
    Points : 441
    Points
    441
    Par défaut
    Si ton code CSS fonctionne et que la police de caractères n’est pas prise en compte c’est soit l’url de "src" qui est incorrect, soit le nom donné à "font-family " qui n’est pas le bon.
    Je pencherais plutôt pour un chemin incorrect puisque tu as fait un essai avec une autre police et que le résultat n’était toujours pas concluant.
    Place ton fichier "HuttemonoV1-Regular.otf" directement dans le répertoire "styles" en modifiant l’url du "src" dans ton CSS comme ceci:

    Code CSS : Sélectionner tout - Visualiser dans une fenêtre à part
    src: url("HuttemonoV1-Regular.otf") format("opentype");

  10. #10
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Octobre 2014
    Messages
    25
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 31
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Arts - Culture

    Informations forums :
    Inscription : Octobre 2014
    Messages : 25
    Points : 10
    Points
    10
    Par défaut
    J'ai également essayé de changer la police de caractère d'emplacement, cela ne change rien.
    Je vais remettre les images, peut-être que je me suis mal expliqué.

    capture d'écran de l'affichage de mon site lorsque je le test en local
    Nom : Capture d’écran 2023-09-15 à 19.06.36.jpg
Affichages : 93
Taille : 420,2 Ko

    capture d'écran de l'affichage de mon site lorsque je le met en ligne via filezilla
    Nom : Capture d’écran 2023-09-15 à 19.08.47.png
Affichages : 92
Taille : 1,31 Mo

    Dans les deux cas la police de caractère s'affiche, donc le chemin vers celle-ci semble correct.
    Ce que je n'arrive pas à comprendre c'est pourquoi le carrousel et les flèches disparaissent, pourquoi la navigation du carrousel ne s'effectue plus correctement, pourquoi les images se retrouvent les unes sous les autres... comme si le script n'était pas reconnu une fois le site mis en ligne.

  11. #11
    Membre averti Avatar de ASCIIDEFOND
    Homme Profil pro
    Autodidacte passionné
    Inscrit en
    Novembre 2002
    Messages
    235
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Landes (Aquitaine)

    Informations professionnelles :
    Activité : Autodidacte passionné

    Informations forums :
    Inscription : Novembre 2002
    Messages : 235
    Points : 441
    Points
    441
    Par défaut
    Citation Envoyé par hadidi Voir le message
    Ce que je n'arrive pas à comprendre c'est pourquoi le carrousel et les flèches disparaissent, ...
    Chez moi il y a bien le problème avec les flèches qui disparaissent. J'ai donc un peu modifié ton CSS et cela devrait peut-être aussi régler les images qui s'affichaient les unes sous les autres avec le redimensionnement.

    Code CSS : 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
    /* APPEL DE LA POLICE DE CARACTERES */
     
    @font-face {
        font-family: "HuttemonoV1";
        src: url("../types/HuttemonoV1-Regular.otf") format("opentype");
        font-weight: normal;
        font-style: normal;
    }
     
     
    * {
        box-sizing: border-box;
    }
     
    html,
    body {
        font-family: "HuttemonoV1";
        width: 100%;
        height: 100%;
        border: 0 none;
        margin: 0;
        padding: 0;
        vertical-align: baseline;
    }
     
    /* -------------------------------------- HEADER NOM DU STUDIO ET ONGLETS DE SECTIONS DU SITE INTERNET -------------------------------------- */
     
    .menu {
        width: 100%;
    }
     
    .inner {
        width: 100%;
    }
     
    .m-left {
        float: left;
    }
     
    .logo {
        margin: 0;
        padding-left: 15px;
        padding-right: 15px;
        font-weight: normal;
        font-size: 20px;
    }
     
    .m-right {
        float: right;
    }
     
    .m-link {
        text-decoration: none;
        color: black;
        text-transform: uppercase;
        font-weight: normal;
        font-size: 20px;
        margin: 0;
        padding-left: 15px;
        padding-right: 15px;
    }
     
    .m-link:hover {
        color: blue;
    }
     
     
    /* --------------------------------------------- CARROUSEL ---------------------------------------------*/
     
    .column {
        height: auto;
        float: left;
        padding: 0 20px 0 0;
        width: 49%;
    }
     
    .carrousel {
        margin-left: 5%;
    }
     
    p {
        font-size: 13px;
        line-height: 1.2em;
    }
     
    .column:nth-child(1) {
        float: inline-start;
        margin: 0 auto 15px auto;
    }
     
    .column:nth-child(2) {
        float: inline-end;
        margin: auto;
    }
     
    .row {
        position: absolute;
        top: 45px;
        left: 4%;
        right: 4%;
        padding-bottom: 55px;
    }
     
    .row:after {
        content: "";
        display: table;
        clear: both;
    }
     
    /* --------------------------- RESPONSIVE POUR LARGEUR MAX 960px -------------------------------------- */
     
    @media screen and (max-width: 960px) {
     
        .column {
            width: 100%;
        }
     
        .carrousel {
            margin-left: 25%;
        }
     
        img {
            width: 50%;
            height: auto;
            object-fit: cover;
            object-position: center;
        }
     
    }
     
    /* --------------------------- RESPONSIVE POUR LARGEUR MAX 720px -------------------------------------- */
     
    @media screen and (max-width: 720px) {
     
        .inner {
            width: 100%;
        }
     
     
        .menu {
            width: 100%;
        }
     
        .m-left {
            float: left;
        }
     
        .logo {
            margin: 0;
            padding-left: 15px;
            font-weight: normal;
            font-size: 15px;
        }
     
        .m-right {
            display: block;
            float: left;
        }
     
        .m-link {
            text-decoration: none;
            color: black;
            text-transform: uppercase;
            font-weight: normal;
            font-size: 15px;
            margin: 0;
            padding-left: 15px;
            padding-right: 15px;
        }
     
        .m-link:hover {
            color: blue;
        }
     
        .column {
            width: 100%;
        }
     
        .carrousel {
            margin-left: 22%;
        }
     
        img {
            width: 60%;
            height: auto;
            object-fit: cover;
            object-position: center;
        }
     
    }
     
    /* --------------------------- RESPONSIVE POUR LARGEUR MAX 525px -------------------------------------- */
     
    @media screen and (max-width: 525px) {
     
        .inner {
            width: 100%;
        }
     
        .menu {
            width: 100%;
        }
     
        .m-left {
            float: left;
        }
     
        .logo {
            margin: 0;
            padding-left: 15px;
            font-weight: normal;
            font-size: 15px;
        }
     
        .m-right {
            display: block;
            float: left;
        }
     
        .m-link {
            text-decoration: none;
            color: black;
            text-transform: uppercase;
            font-weight: normal;
            font-size: 15px;
            margin: 0;
            padding-left: 15px;
            padding-right: 15px;
        }
     
        .m-link:hover {
            color: blue;
        }
     
        .row {
            position: absolute;
            top: 60px;
            left: 4%;
            right: 4%;
            padding-bottom: 55px;
        }
    }
     
    /* --------------------------------------------- FLECHES DE NAVIGATION --------------------------------------------- */
    .arrow {
        position: absolute;
        cursor: pointer;
        color: black;
        font-weight: bold;
        font-size: 2.5em;
        transition: 0.2s ease;
        user-select: none;
        opacity: 0.7;
        bottom: 5%;
    }
     
    .arrow:active {
        color: blue;
    }
     
    .arrow:hover {
        opacity: 1;
    }
     
    .prev {
        left: 10px;
    }
     
    .next {
        right: 10px;
    }
     
    .prev::before {
        content: "\0023F4";
    }
     
    .next::before {
        content: "\0023F5";
    }

  12. #12
    Modérateur

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

    Informations forums :
    Inscription : Janvier 2011
    Messages : 17 110
    Points : 44 908
    Points
    44 908
    Par défaut
    Bonjour,


    ... il serait bon de ne pas tout mélanger
    Citation Envoyé par hadidi
    Et le site est illisible et inutilisable.
    Je ne comprends pas pourquoi se produit un tel changement.
    rien à voir avec :
    Citation Envoyé par hadidi
    Ce que je n'arrive pas à comprendre c'est pourquoi le carrousel et les flèches disparaissent, ...


    Pour info/rappel
    Une discussion = une question

    Poser plusieurs questions dans un seul et même fil nuit grandement à la qualité du forum : notamment, lors d'une recherche, tout le contenu du fil n'est pas indiqué dans le titre, elle devient donc plus ardue.

    Notre but est de maintenir une base de connaissances facile à exploiter par tous les visiteurs, utilisable par tous. Vous avez pu bénéficier de ce forum en posant vos questions, laissez la possibilité aux suivants de bénéficier des réponses en leur offrant un sujet moins dispersé.

  13. #13
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Octobre 2014
    Messages
    25
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 31
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Arts - Culture

    Informations forums :
    Inscription : Octobre 2014
    Messages : 25
    Points : 10
    Points
    10
    Par défaut
    Citation Envoyé par NoSmoking Voir le message
    Bonjour,


    ... il serait bon de ne pas tout mélanger
    Bonjour,

    je m'excuse, je me suis mal exprimé.
    Cordialement

  14. #14
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Octobre 2014
    Messages
    25
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 31
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Arts - Culture

    Informations forums :
    Inscription : Octobre 2014
    Messages : 25
    Points : 10
    Points
    10
    Par défaut
    Citation Envoyé par ASCIIDEFOND Voir le message
    Chez moi il y a bien le problème avec les flèches qui disparaissent. J'ai donc un peu modifié ton CSS et cela devrait peut-être aussi régler les images qui s'affichaient les unes sous les autres avec le redimensionnement.
    J'ai testé et le problème semble persister seulement sur google chrome...
    La navigation du site se fait correctement sur opéra, safari et firefox.

    Cela ne pourrait-il pas venir de mes chemins ?
    Lorsque je mets mon site en ligne sur Hostinger, je le dépose dans un dossier appelé public_html, or je n'y fait jamais référence dans mes codes.

    Dans mon dossier de site sur mon ordinateur, j'ai mes deux fichiers "index.html" et "info.html" qui ne sont pas dans des dossiers. Puis j'ai un dossier "assets" avec mes .css, .js et mes polices de caractères. Puis un dossier "images".
    Ce sont donc ces deux dossiers + mes deux fichiers .html que je dépose dans le "public_html" d'hostinger.

  15. #15
    Membre averti Avatar de ASCIIDEFOND
    Homme Profil pro
    Autodidacte passionné
    Inscrit en
    Novembre 2002
    Messages
    235
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Landes (Aquitaine)

    Informations professionnelles :
    Activité : Autodidacte passionné

    Informations forums :
    Inscription : Novembre 2002
    Messages : 235
    Points : 441
    Points
    441
    Par défaut
    Citation Envoyé par hadidi Voir le message
    J'ai testé et le problème semble persister seulement sur google chrome...
    La navigation du site se fait correctement sur opéra, safari et firefox.
    Nettoyer le cache de Google Chrome ?

  16. #16
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Octobre 2014
    Messages
    25
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 31
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Arts - Culture

    Informations forums :
    Inscription : Octobre 2014
    Messages : 25
    Points : 10
    Points
    10
    Par défaut
    Effectivement en nettoyant les caches cela fonctionne.
    Il me reste à peaufiner et à améliorer mon design en regard de ce que je souhaite faire.
    Merci pour ton temps!

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

Discussions similaires

  1. Réponses: 0
    Dernier message: 25/10/2021, 15h38
  2. Police importée non prise en compte
    Par Akihisa. dans le forum Mise en page CSS
    Réponses: 2
    Dernier message: 10/05/2017, 18h23
  3. [css] Feuille de style non prise en compte
    Par Neuromancien2 dans le forum Mise en page CSS
    Réponses: 4
    Dernier message: 29/06/2005, 11h49
  4. [netbeans] Modifications non prises en compte
    Par nadass dans le forum NetBeans
    Réponses: 6
    Dernier message: 07/04/2005, 13h49
  5. Lecture de fichier - dernière ligne non prise en compte
    Par JulienPles dans le forum Algorithmes et structures de données
    Réponses: 3
    Dernier message: 16/03/2005, 11h57

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