It sounds like you need the main body of the page to always fill the height of the viewport even when the content is shorter.
Find out the height of the header first so you can calculate the remaining height of the viewport.
.site-content {
min-height: calc(100vh - [insert header height here] );
}
Related Posts:
- With over a page of content the footer remains where the bottom of the screen was at top scroll
- How am I supposed to use index.html?
- CSS Background Opacity [duplicate]
- Making a
- CSS to make HTML page footer stay at bottom of the page with a minimum height, but not overlap the page
- How to align a to the middle (horizontally/width) of the page [duplicate]
- Is there a color code for transparent in HTML?
- How to get these two divs side-by-side?
- Is there a color code for transparent in HTML?
- “Stray start tag footer” in html validator?
- Make div scrollable
- Fix footer to bottom of page
- HTML Width Percentage
- Text-decoration: none not working
- Why are my CSS3 media queries not working on mobile devices?
- How to completely remove borders from HTML table
- How to fix a footer overlapping content?
- How to word wrap text in HTML?
- What’s the HTML to have a horizontal space between two objects?
- How to center HTML5 Videos?
- HTML/CSS float: left; is not working properly
- height style property doesn’t work in div elements
- How to get current screen width in CSS?
- margin-right is not working with my HTML. How can I center my content?
- How to center HTML5 Videos?
- How can I make my footer center to the bottom of the page?
- HTML span align center not working?
- How to place Text and an Image next to each other in HTML?
- Align
elements side by side- Set bootstrap modal body height by percentage
- CSS – display: none; not working
- Display Images Inline via CSS
- Text wrapping around a div
- CSS/HTML: Create a glowing border around an Input Field
- Why CSS3 Animation is not working?
- How to make fixed header table inside scrollable div?
- Using margin / padding to space span tag from the rest of the p tag
- How to expand textarea width to 100% of parent (or how to expand any HTML element to 100% of parent width)?
- Removing whitespace between HTML elements when using line breaks
- CSS fixed width in a span
- Why are my divs overlapping?
- How to make canvas responsive
- How to Add Admin Bar and Admin Menu or Submenu Notification Bubbles?
- raw code vs wordpress
- Adding HTML to the Header, Screws up in IE7
- Write text below a specific part of a sentence
- How to insert html/css/javascript code to wordpress plugin
- How to create fa-bars animated menu
- footer disappear on some pages frequently
- Changing CSS FilePath for All Pages
- Title has word broken when viewed in mobile [closed]
- How can I get the search form to be selected automatically?
- Google yolo one tab signup plugin avilable in wordpress? [closed]
- Disable File Editing function
- Some Text of website page on Iphone Safari become invisible
- Get post format and use it as a CSS class in different spans
- Is it safe to use WordPress generated classes?
- How to change the settings of a video? [closed]
- Simple way to add custom class and ids to individual Gutenberg blocks
- Acessing HTML element with no specific tag on it [closed]
- How to Add a Read-only Textbox With Text in it That Has a Button to Copy it?
- Custom CSS is not working?
- Responsive issue with secondary logo – not sticking in position [closed]
- Earlier stylesheet not overriding later one
- how to stop the shaking effect on my homepage [closed]
- prevent HTML output if custom field is empty [closed]
- How to add class to an html output element in tinyMCE paragraph drop down menu
- WordPress is not displaying CSS file
- Change class names dynamically added to html elements by wordpress
- I have html form and need to make it work in text editor on template. Only problem is it has .sccs styling file
- Hide Tab Titles from Tabs Block
- How to make jquery slider to start afresh [closed]
- Clickable Text To Replace Radio buttons
- How to remove the specific class
- Img load while refreshing
- HTML not resizing
- how to modify html on homepage (no home-page.php in my theme)
- current menu item hover not working?
- How to Compress Css/js code in wordpress and increase loading speed?
- Fonts are parsed in one way but rendered in a different way
- Divi Theme HTML code is different in View Page Source than in the Firefox Inspector
- How to Take Logo Out of Navigation Menu? [closed]
- @media applying globally and not separately for each screen width [closed]
- issues with a slider – investigations with firebug
- Css style removed but still showing via CDN even after clearing browser cache and purging all caches for site
- How would I add this code to a single WordPress page?
- Trouble with adding preloader to my home page index.html and index.js
- WP theme update causes child theme CSS problems
- I cannot make this position properly in WordPress [closed]
- Converting Static HTML pages to WordPress
- How do I hide a specific div class inside ? [closed]
- I need css code to divide my webpage sections into two columns
- Add woocommerce plugin in own theme
- Footer in middle of page in different browers [closed]
- Hiding fields a form in via CSS [closed]
- Can I upload my HTML/CSS/Javascript game onto a WordPress page?
- WordPress site suddenly not showing some DOM elements but mobile is fine
- Editing size of h3 tag in wordpress on a one-off basis
- IOS Ventura Safari 16.3 position fixed elements goes above scroll bar
- Elementor Contact Form Submit button has empty class