Bonjour à toutes et à tous,

Je m'arrache les cheveux depuis plusieurs sur le problème suivant :

J'ai une image (1500px x 844px)en background qui est tronquée (sur smartphones et tablettes) en mode portrait.

Tout fonctionne parfaitement sauf ça.
J'ai cherché sur bcp de forums, essayé plein de solutions proposées, aucune ne fonctionne pour mon souci.

Je suis en galère et j'ai besoin vraiment de votre aide.

Merci d'avance



Voici le code dans le "style.css" :

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
background: url('../images/hero1.jpeg');
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  min-width: 100%;
  min-height: 100%;
  height: 100%;
  width: 100%;
  display: block;



Voici le code dans le "responsive.css"

@media screen and (max-width: 480px){
    /*----- layout ----*/
    .grey-bg, .white-bg{
        padding: 40px 0; 
    }
    /*---- hero -----*/
    .hero-content{
        min-width: 280px; 
        padding: 25px;
    }
    .menu-wrap{width: 220px;}
    .mouse-icon{bottom: 5px;}

    /*---- portfolio -----*/
    ul.portfolio-image li{
        width: 100%;
        padding-top: 95%;
    }

    /*---- blog -----*/
    .grid-item {
    width: 100% !important;
    padding: 0;
  }

    /*---- quote -----*/
    .wrap-about{ 
        padding: 0 0 20px 0;
        min-height: 400px !important;
    }
    .wrap-about .w-content{
    left: 0;
    right: 0;
    width: 100%;
    top: 0;
    padding: 30px 0;
    transform: none;
    }


  /*------- testimonial -------*/
  #testimonial{ height: 700px;}

  .skillst {margin-top: 50px;}
}


@media screen and (max-width: 768px){
    /*------ header -----*/    
    .for-sticky{ padding: 0; }
    .logo-nav { margin-left: 0;}
    .menu-button{margin-right: 15px;}
    .ma-infinitypush-wrapper.ma-infinitypush-active-button.ma-infinitypush-button-right .ma-infinitypush-button{
        left: -65px;
    }
    .ma-infinitypush-wrapper{ width: 200px; }
    .ma-infinitypush-wrapper    ul > li{
            width: 200px;
        }

    /*------- home ------*/
    #home p {width: 100%;}

    /*----- portfolio -----*/
    .portfolio-image > li{
        width: 50%;
    }


  /*---- blog -----*/
    .grid-item {width: 50%;}

  /*------- about -------*/
  .bg-about{min-height: 520px;}
  .wrap-about{
      min-height: 520px;
      padding-bottom: 10%;
      padding-left: 30px;
    padding-right: 30px;
  }
  .wrap-about    .head-quote{padding-top: 10%;}

  .content-right{ margin-top: 20px; }

  .text-grey{margin-bottom: 45px;}
  .skillst{ margin-top: 50px;}
    /*------ footer -----*/
  footer p{ text-align: center; }
  footer ul.social {
    margin-left: -40px;
    text-align: center;
    }
    footer ul.social li { 
        padding: 0px 10px 0px 10px;
    }
}

@media screen and (min-width: 1024px){
    .content-right {
      margin-top: 20px;
      padding: 0 20px 0 60px; 
    }
}


Voici le bout de code html :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
<!--HOME-->
<section id="home">
          <div class="container">
            <div class="row">
              <div class="wrap-hero-content">
                  <div class="hero-content">