Search
 
SCRIPT & CODE EXAMPLE
 

CSS

ipad specific media query

/*working only in ipad portrait device*/
@media only screen and (width: 768px) and (height: 1024px) and (orientation:portrait) {
  body{
    background: red !important;
  }  
}
/*working only in ipad landscape device*/
@media all and (width: 1024px) and (height: 768px) and (orientation:landscape){
  body{
    background: green !important;
  }   
}

In the media query of specific devices, please use '!important' keyword to override the default CSS. Otherwise that does not change your webpage view on that particular devices.
Comment

PREVIOUS NEXT
Code Example
Css :: Background Image Accessibility concerns 
Css :: slect all li that not have ul 
Css :: wrapped header aura datatable 
Css :: set default scroll position css 
Css :: body css margin, background, font-family, hei 
Css :: types of margin in css 
Css :: css animation visualizer 
Css :: hard cutoff gradient 
Css :: css stop animation at end 
Css :: hyper text programming language 
Css :: how can i make a menu bar appear by clicking an icon? in css? 
Css :: Basic sintax media Query 
Css :: css transform cheat sheet 
Css :: vw css 
Css :: input type search in css 
Css :: apple gradients 
Css :: alumina formula 
Typescript :: react-native init typescript 
Typescript :: vscode change comments color 
Typescript :: check if url exists python 
Typescript :: You do not have sufficient access rights to perform this operation 
Typescript :: ts reverse array 
Typescript :: convert object object to array typescript 
Typescript :: checking if a substring exists in a string r 
Typescript :: type script edeode url 
Typescript :: only digits pattern 
Typescript :: NativeStackNavigationProp params 
Typescript :: latex reduce the space after section and subsection 
Typescript :: how many terrorists do not conform to the gender binary 
Typescript :: check if file.properties is exits android 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =