Use a comma to specify two (or more) different rules:
@media screen and (max-width: 995px), screen and (max-height: 700px) { ... }
From https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries
Commas are used to combine multiple media queries into a single rule. Each query in a comma-separated list is treated separately from the others. Thus, if any of the queries in a list is true, the entire media statement returns true. In other words, lists behave like a logical or operator.
Related Posts:
- @Media min-width & max-width
- Why are my CSS3 media queries not working on mobile devices?
- What is the difference between “screen” and “only screen” in media queries?
- Responsive media query not working in Google Chrome
- Detect if a browser in a mobile device (iOS/Android phone/tablet) is used
- Customize Bootstrap checkboxes
- Is there a CSS parent selector?
- What is WebKit and how is it related to CSS?
- Is there a color code for transparent in HTML?
- How can I center an absolutely positioned element in a div?
- How to override the properties of a CSS class using another CSS class
- css transition opacity fade background
- Text-decoration: none not working
- CSS transition shorthand with multiple properties?
- Style disabled button with CSS
- iPhone 6 and 6 Plus Media Queries
- bootstrap 4 row height
- sass :first-child not working
- Twitter Bootstrap – add top space between rows
- Hex colors: Numeric representation for “transparent”?
- Text wrapping around a div
- Iframe’s overflow problem
- Show / hide div on click with CSS
- CSS to select/style first word
- img-responsive in Bootstrap does not work
- sizing div based on window width
- Enqueue Google Web Fonts Without Messing Up Symbols In URL
- How to modify/extend/override a core method?
- Adding style sheet to specific page
- WordPress CSS head info – contents, expansions?
- How do I add a class to that is generated by >
- How to add a body class to all interior pages except the homepage
- add a CSS id to the body of a page in wordpress
- Can I use theme options to change two things at once?
- Possible to include ACF text field within inline style tag?
- wp_head function causes 30px blank space [closed]
- Include print style sheet
- De-registering a CSS file leaves it in the queue
- WooCommerce change number of columns in the frontpage
- Efficient way to edit WordPress themes
- How to add an RSS logo to my blogs header?
- Where Do I Find The Astra Default Font Family That All Text Elements Are Inheriting From? [closed]
- How does W3 Total Cache Load Images In Stylesheet via CDN? [closed]
- images within style sheet
- IE and WordPress
- How can I use one stylesheet for multiple sub-sites on my multi-site network?
- Child theme stylesheet not always overriding “index”
- How do I apply/target CSS to a specific user role or roles?
- Why is this jquery / java script code not working in mobile / in devices?
- Alternate stylesheet only works with absolute address for link?
- How can I remove the ::after CSS selector which is automaticaly appended to the_content()?
- How to create an optionally available stylesheet for visually impared users?
- Image getting out of container [closed]
- Clients website shows blank page [closed]
- Why is my child theme style.css not found (404) in the front-end? [closed]
- functions.php – inject inline css from file
- Changing navigation strip color with CSS
- How can I make css inline?
- Namespacing theme CSS
- Use Google Fonts and unicodes
- Conditionally print css style in WordPress
- WordPress is not displaying CSS file
- Change class names dynamically added to html elements by wordpress
- Page versus post ID specific CSS ID?
- Add classes + taxonomy terms to wp_list_pages() output
- Chat window hiding behind Twenty Eleven header
- CSS for the main top menu appears to have stopped working after All-In-One Migration transfer
- Css will not display in webpage, after adding it in style.css in child theme
- Hide Tab Titles from Tabs Block
- Hide product variations at home page
- wp_list_pages two columns
- TinyMCE on frontend style not working
- WordPress childtheme not loading any CSS/SCSS
- Bootstrap Integtration
- H2 On Blog/Article Page Gets Assigned a Class
- HTML not resizing
- Help locating old custom_css in PHP MyAdmin
- I would like to achieve a two column checkout page
- Make Responsive Specific Page in WordPress
- How to get homepage div container of wordpress website to display full width? [duplicate]
- CSS in child theme to replace !important in parent theme
- How would I add this code to a single WordPress page?
- WP theme update causes child theme CSS problems
- How to change menu hover color to white on my theme? [closed]
- adding a favicon to site2 – site1/site2/favicon.ico
- WordPress crop image not working [closed]
- How to make CSS load live based on options clicked in the theme customizer?
- Which files can be replaced in a child theme?
- How to implement styling of div in the front end using plugin admin meta box settings?
- How do i make a sidebar background color? [closed]
- How to remove audio player styles added by mediaelement.js JavaScript?
- Do you use css reset in your child theme [closed]
- CSS messes up when CACHE is cleared
- Twenty Fourteen Theme – Moving left sidebar to the right
- WordPress doesn’t respect “ver” parameter in styles [closed]
- why does WordPress custom css convert alpha to hex values?
- Image is very blurry
- how to change the colour of this background
- Can I upload my HTML/CSS/Javascript game onto a WordPress page?
- How to add css to wp_head depending on the user role?