I can not apply styles to tablet resolution in landscape

-1

I can not apply the styles to a article in the mediaquery of tablet landscape. It takes me the mediaquery styles of desktop resolution. With my tablet horizontally, the paragraph is almost down, the arrow icon is not visible. In portrait it looks good on the tablet. On desktop it looks good too. I have modified the code many times and I can not solve it.

@media (min-width: 767px)  and (orientation : portrait){
  #shufle  {
    
    line-height: normal;
    margin-left: auto;
    margin-right: auto;
    //top: 35%;
  }
 #shufle .read-on 
   {
      margin-top:100px;
      padding-bottom:800px;

   }
  #shufle p 
  {
    margin-top: 500px;
    text-align: center;
    font-weight: 300;
  font-size: 30px;
  }
}


@media screen and (min-width : 767px) and (max-width : 840px)  and (orientation : landscape){
   
   #shufle p
   {
      margin-top: 200px;
      text-align: center;
      font-weight: 300;
      font-size: 30px;

   }
  #shufle .read-on 
   {
      margin-top:350px;
      padding-bottom:300px;

   } 
   
 }
 
 @media (min-width: 992px) {
  #shufle p 
  {
  	margin-top: 450px;
    font-size: 30px;
    text-align: center;
  }

#shufle .read-on 
 {
    margin-top: 300px;
    padding-bottom:80px;
  }
  
  }
	<article id="shufle">
		<div class="container">
			
		
		<p class="fading-texts text-center">
			
			lorem impsum lomrem.
		</p>
	
		<p class="read-on">
			<a href="#about" class="goto">
			<span class="goDown">
			<i class="fa fa-chevron-down fa-cog-white"></i>
			</span>
			<span class="htxt">Read on </span>
			</a>
		</p>
	</div>
</article>
    
asked by Rafael Hernández 07.07.2017 в 20:16
source

1 answer

0

I was doing tests and your problem is related to a bad configuration of the viewport. Normally you should have something like that in your <head> :

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

In case you do not have it, the browser assumes a predetermined width for each "manufacturer", in Chrome it is 980px.

    
answered by 08.07.2017 в 16:26