Display problems of a mobile site

0

Hi, I'm having a problem with the visualization of a site that arme, it turns out that I check it in the mobile mode that brings chrome, mozilla and it looks perfect, now I check it from my cell phone in any browser and it looks disarmed, it happens exclusively in IOS. the site is this the code

#programas .programa-puente {
position: absolute;
z-index: 999;
left: 0;
}
#programas .programa-puente .caja {
z-index: 999;
color: #fff;
padding: 25px 10px;
margin-top: 17%;
}
#programas .programa-compromiso {
position: absolute;
z-index: 999;
right: 0;
}
#programas .programa-compromiso .caja {
z-index: 999;
color: #fff;
padding: 25px 10px;
margin-top: 17%;
float: right;
}
#programas .programa-compromiso .caja img {
margin-bottom: 10px;
float: right;
clear: both;
}
#programas .programa-puente .caja img {
margin-bottom: 10px;
clear: both;
/* float: left; */
text-align: left;
}
#programas .programa-puente .caja .btn-informacion-del-programa {
background-color: #ce3629;
padding: 14px 40px;
margin-top: 10px;
font-family: 'stainlesscond-lightregular';
text-transform: uppercase;
border-radius: initial;
color: #fff;
text-align: center;
clear: both;
-webkit-transition: all .4s ease-in-out;
-moz-transition: all .4s ease-in-out;
transition: all .4s ease-in-out;
position: relative;
z-index: 9;
letter-spacing: 1px;
}
#programas figure.snip1212 {
  font-family: 'stainlesscond-lightregular';
  color: #fff;
  position: relative;
  float: left;
  overflow: hidden;
  background-color: #ffffff;
  color: #000000;
  text-align: left;
  font-size: 16px;
  height:484px;
  width: 100%

}
#programas figure.snip1212 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
#programas figure.snip1212 .image {
  max-width: 100%;
  vertical-align: top;
  -webkit-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 100% 0;
}
#programas figure.snip1212 figcaption {
  top: 88%;
  left: 20px;
  right: 40px;
  text-align: left;
  position: absolute;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%)
}
#programas figure.snip1212 figcaption h3{
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;
}
#programas figure.snip1212 .date,
#programas figure.snip1212 i {
  background-color: #e41c14;
  top: 25px;
  color: #fff;
  left: 25px;
  min-height: 60px;
  min-width: 60px;
  position: absolute;
  text-align: center;
}
#programas figure.snip1212 .date,
#programas figure.snip1212 .icon {
  background-color: #e41c14;
  top: 25px;
  color: #fff;
  left: 25px;
  min-height: 60px;
  min-width: 60px;
  position: absolute;
  text-align: center;
}
#programas figure.snip1212 .date {
  -webkit-transition-delay: 0.2s;
  transition-delay: 0.2s;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}
#programas figure.snip1212 .date span {
  display: block;
  line-height: 30px;
}
#programas figure.snip1212 .date .month {
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0.1);
}

#programas figure.snip1212 .icon {
  line-height: 60px;
  font-size: 30px;
/*   -webkit-transform: rotateY(-90deg);
  transform: rotateY(-90deg);
  -webkit-transition-delay: 0s;
  transition-delay: 0s; */
    min-width: 50px;
    min-height: 52px;
    padding: 20px;

}
#programas figure.snip1212 h3,
#programas figure.snip1212 p {
  margin: 0;
  padding: 0;
}
#programas figure.snip1212 a {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  z-index: 1;
}
 #programas figure.snip1212:hover img,
#programas figure.snip1212.hover img {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

#programas figure.snip1212:hover i,
#programas figure.snip1212.hover i {
  -webkit-transform: rotateY(0);
  transform: rotateY(0);
  -webkit-transition-delay: 0.2s;
  transition-delay: 0.2s;
}
#programas figure.snip1212:hover .icon,
#programas figure.snip1212.hover .icon {
  -webkit-transform: rotateY(0);
  transform: rotateY(0);
  -webkit-transition-delay: 0.2s;
  transition-delay: 0.2s;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

<div id="programas"> 
        <section>
          <div class="container-fluid sin-padding">
            <div>
                <div style="right: 0;top: 0;z-index: 24;background-size: cover;   background-position: center;">
                <figure class="snip1212">
                  <img class="image img-responsive" src="http://qkstudiodemo.com/fundacionlomanegra/html/images/img-programa-puente.jpg" alt="..."/>
                </figure> 
                </div>

                  <div class="container" style="position: relative;height: 148px;">
                    <div class="col-lg-6 pull-left programa-puente">
                      <div class="caja-programa">                     
                        <div class="caja">
                         <img class="image img-responsive" src="http://qkstudiodemo.com/fundacionlomanegra/html/images/logo-puente.png" alt="...">
                         <p>Inserción laboral de jóvenes para un primer empleo.</p>
                         <a href="" class="btn btn-informacion-del-programa">MÁS INFORMACIÓN</a>
                        </div>                          
                      </div>
                    </div>
                    <div class="col-lg-6 pull-right programa-puente-2">
                    </div>                
                  </div>
            </div>
            
            <div class="clearfix"></div>

            <div>
                <div style="right: 0;top: 0;z-index: 24;background-size: cover;   background-position: center;">
                  <figure class="snip1212">
                    <img class="image img-responsive" src="http://qkstudiodemo.com/fundacionlomanegra/html/images/img-programa-compromiso.jpg" alt="..."/>
                  </figure> 
                </div>

                  <div class="container" style="position: relative;height: 148px;">
                    <div class="col-lg-6 pull-left programa-puente">
                    </div>
                    <div class="col-lg-6 pull-right programa-compromiso">
                      <div class="caja-compromiso">                     
                        <div class="caja">
                         <img class="image img-responsive" src="http://qkstudiodemo.com/fundacionlomanegra/html/images/logo-compromiso.png" alt="...">
                         <p>Voluntariado corporativo y desarrollo de base.</p>
                         <a href="" class="btn btn-informacion-del-programa">MÁS INFORMACIÓN</a>
                        </div>                          
                      </div>                      
                    </div>                
                  </div>
            </div> 

            <div class="clearfix"></div> 

            <div>
                <div style="right: 0;top: 0;z-index: 24;background-size: cover;   background-position: center;">
                <figure class="snip1212">
                  <img class="image img-responsive" src="http://qkstudiodemo.com/fundacionlomanegra/html/images/negocios-exclusivos.jpg" alt="..."/>
                </figure> 
                </div>

                  <div class="container" style="position: relative;height: 148px;">
                    <div class="col-lg-6 pull-left programa-puente">
                      <div class="caja-programa">                     
                        <div class="caja">
                         <h2>Programa de <strong>Negocios Inclusivos</strong></h2>
                         <p>Apoyo a emprendimientos.</p>
                         <a href="" class="btn btn-informacion-del-programa">MÁS INFORMACIÓN</a>
                        </div>                          
                      </div>
                    </div>
                    <div class="col-lg-6 pull-right programa-puente-2">
                    </div>                
                  </div>
            </div>                      
          </div>
        </section>
</div>

that you use attached below.

    
asked by MarianoF 03.02.2018 в 14:32
source

2 answers

0

Maybe this can help you:

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

Source: link

Also, the class col-lg-* refers to a desktop grid. Maybe it would help to use col-sm-* (more or less a tablet) or col-xs-* (phones). On this you have more information at: link

    
answered by 03.02.2018 в 15:29
0

In your case you are only telling boostrap that the column is lg-6 (desktop)

You have to specify the columns for mobile / tablets. Boostrap Docs

Add:

 col-sm-6 col-xs-6

Example Boostrap Mobile / Desktop Grid

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

<div id="programas"> 
        <section>
          <div class="container-fluid sin-padding">
            <div>
                <div style="right: 0;top: 0;z-index: 24;background-size: cover;   background-position: center;">
                <figure class="snip1212">
                  <img class="image img-responsive" src="http://qkstudiodemo.com/fundacionlomanegra/html/images/img-programa-puente.jpg" alt="..."/>
                </figure> 
                </div>

                  <div class="container" style="position: relative;height: 148px;">
                    <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 pull-left programa-puente">
                      <div class="caja-programa">                     
                        <div class="caja">
                         <img class="image img-responsive" src="http://qkstudiodemo.com/fundacionlomanegra/html/images/logo-puente.png" alt="...">
                         <p>Inserción laboral de jóvenes para un primer empleo.</p>
                         <a href="" class="btn btn-informacion-del-programa">MÁS INFORMACIÓN</a>
                        </div>                          
                      </div>
                    </div>
                    <div class="col-lg-6 col-sm-6 col-6 col-xs-6 col-md-6 pull-right programa-puente-2">
                    </div>                
                  </div>
            </div>
            
            <div class="clearfix"></div>

            <div>
                <div style="right: 0;top: 0;z-index: 24;background-size: cover;   background-position: center;">
                  <figure class="snip1212">
                    <img class="image img-responsive" src="http://qkstudiodemo.com/fundacionlomanegra/html/images/img-programa-compromiso.jpg" alt="..."/>
                  </figure> 
                </div>

                  <div class="container" style="position: relative;height: 148px;">
                    <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 pull-left programa-puente">
                    </div>
                    <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 pull-right programa-compromiso">
                      <div class="caja-compromiso">                     
                        <div class="caja">
                         <img class="image img-responsive" src="http://qkstudiodemo.com/fundacionlomanegra/html/images/logo-compromiso.png" alt="...">
                         <p>Voluntariado corporativo y desarrollo de base.</p>
                         <a href="" class="btn btn-informacion-del-programa">MÁS INFORMACIÓN</a>
                        </div>                          
                      </div>                      
                    </div>                
                  </div>
            </div> 

            <div class="clearfix"></div> 

            <div>
                <div style="right: 0;top: 0;z-index: 24;background-size: cover;   background-position: center;">
                <figure class="snip1212">
                  <img class="image img-responsive" src="http://qkstudiodemo.com/fundacionlomanegra/html/images/negocios-exclusivos.jpg" alt="..."/>
                </figure> 
                </div>

                  <div class="container" style="position: relative;height: 148px;">
                    <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 pull-left programa-puente">
                      <div class="caja-programa">                     
                        <div class="caja">
                         <h2>Programa de <strong>Negocios Inclusivos</strong></h2>
                         <p>Apoyo a emprendimientos.</p>
                         <a href="" class="btn btn-informacion-del-programa">MÁS INFORMACIÓN</a>
                        </div>                          
                      </div>
                    </div>
                    <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 pull-right programa-puente-2">
                    </div>                
                  </div>
            </div>                      
          </div>
        </section>
</div>
    
answered by 03.02.2018 в 16:37