I don’t know why you wanna do that, but..
We can use min-height with vh (view port height) unit for this. Setting height of the page to 100vh means we are saying the page to fill the full view port height.
.site {
min-height: 100vh;
}
But this doesn’t work well with iOS7. So work around is.
/**
* iPad with portrait orientation.
*/
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait){
.site {
min-height: 1024px;
}
}
/**
* iPad with landscape orientation.
*/
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:landscape){
.site {
min-height: 768px;
}
}
/**
* iPhone 5
* You can also target devices with aspect ratio.
*/
@media screen and (device-aspect-ratio: 40/71) {
.site {
min-height: 500px;
}
}
References:
Related Posts:
- how can I add an icon/image for a child theme?
- My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”
- How to add Color Picker in Theme Options for the following?
- How to edit bbPress template files – WordPress + BuddyPress + bbPress? [closed]
- Best practices – Should I create a child theme vs. customizing a framework theme? (such as HTML5 reset)
- Child Theme not loading parent CSS
- add generated stylesheet from parent theme after child-themes style.css
- add_image_size is scaling, even though crop is set to true
- Change Genesis Tag from Page Template [closed]
- How do I get my child-theme to work with my theme’s includes folder?
- How do I get a parent theme modification from a child theme?
- CSS in child theme not overriding the parent theme [closed]
- Optimal solution to develop a wordpress theme?
- When developing a distributable Theme, does it HAVE to be “inheritable”?
- Nesting Functions within Functions
- Should I update my _s theme?
- Create a theme by combining a parent and a child theme
- How to keep my custom theme changes after updating genesis child theme
- De-registering parent style sheet css recommended?
- Can I customize any WordPress parent block-based theme template files by child theme like a parent classic theme?
- WordPress Multisite: Have the same header and footer of main-blog on all sub-blogs
- Override Constants in Child theme
- WordPress default theme css units
- Am I supposed to create a child theme for every theme I use?
- Child themes: disabling the parent
- How to Edit the style of header title of Twenty Eleven Theme?
- Child theme style.css versioning
- Cannot figure out how to overwrite files in child theme
- How to add theme support?
- Removing non native customizer settings from a child theme
- Link to a .po file in a child theme
- Alias to theme folder for local development
- Inheritance of parent theme plugin files in a child theme
- Divi Child Theme not appearing in “Themes” [closed]
- Injecting a custom sql query into a page/theme
- Select full Image Size on widget “Genesis – Featured Posts”
- Child theme enqueue scripts using new functions
- changing blog title to an image using filter function in child theme
- Show woocommerce categories on my theme menu styling
- Child Theme’s style.css not loading in mobile browser
- How to properly create a child theme
- Replace function in a child theme
- Can’t remove DIV from hooks in Storefront child theme [closed]
- Renaming a theme so it aids SEO and the theme used is hidden
- Overrite parent functions using child functions
- Derive child theme from separate theme
- Child Theme header1.php file not overwriting parent theme’s header1.php file
- Need help with adding templates (archives and sitemap) to WordPress child theme
- Will my site get messed up when the wordpress theme updates if I edited the html code in the editor to change footer?
- How to create and populate with few links a menu in child theme functions.php?
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- Create a child theme from multiple themes
- Overide enqueue in non plugable function via child theme
- Starting point for custom Themes [closed]
- Why still output /wp-content/themes/twentynineteen?
- Do I need to create a child theme for JointsWP
- Why is switching between themes breaking my child theme?
- Questions from a new WP Dev [closed]
- jQuery from parent theme loaded with many other scripts in a single min.js file
- Is There A WordPress Hook for Accessing Attachments for A Particular Page?
- Do I need to re-import Susy to work with it in a child theme? [closed]
- Adding Bootstrap to WordPress TwentySixteen Theme
- Unable to change the priority with ‘remove_action’ and ‘add_action’ in child theme
- Translate a child theme with pure PHP and gettext
- Different themes on one site
- Remove h1 from 2015 theme
- What might cause a featured image not to display?
- Add content after get_header
- Converting a theme to a child theme in a network
- Understrap-child conditional js script
- How can I access variables from theme in child theme? [closed]
- How to display home page last modified date in anywhere of wordpress theme?
- Block validation failed for `core/pullquote` after adding theme support for editor-color-palette
- How to show metabox on page if it is using a template
- Is_single not working properly in genesis
- Child theme menu not appearing in Twenty Seventeen
- Edit Product Archive design for Woo theme
- How to test another theme in a live WordPress website instead of live preview?
- Duplicate child theme incl. design changes
- Move the social media icons to the left of a WordPress nav menu for Soledad child Theme
- How to connect two child themes on different sub domains to the same base theme
- Debugging slow WordPress Theme Customizer (Any option similar to Query Monitor)?
- Editing Them with Child Theme Basics [closed]
- How to customize the colors within a stylesheet using a WordPress setting
- Child theme in separate WordPress Install
- Providing updates to your WordPress theme
- How to show children pages as array
- Hook in parent theme Menu function
- How do child themes work?
- Protecting work on client’s web host
- Why WordPress gets old templates code instead of the last updated ones
- How to migrate the menu from the site on my own theme in WordPress?
- Extending arrays in parent theme without completely overriding the files
- WordPress theme Modifications not showing up on live server
- What to do when child theme is out of date with parent theme
- add_action works outside condition but not inside it
- Global Navigation menu in diiferrent wordpress setups
- Image Size wrong during upload
- Should I create a child theme for a parent custom theme? [closed]
- What’s your workflow for converting a static HTML website to WordPress? [closed]