Your issue can be easily fixed by using flexbox. Just wrap your .container and your .footer in a flex container with a min-height: 100vh, switch the direction to column so that they stack on top of each other, and justify the content with space between so that footer will move to the bottom.
.flex-wrapper { display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; }
<div class="flex-wrapper"> <div class="container">The content</div> <div class="footer">The Footer</div> </div>
Related Posts:
- How to make a vertical line in HTML
- How to make the overflow CSS property work with hidden as value
- Linking to a pdf file with html
- Change TD border color with HTML or CSS
- 100% DIV width is not really 100%
- How to place two divs next to each other?
- How to make div background color transparent in CSS
- Open source social media icons to download and use on website? [closed]
- CSS calc width and height values
- CSS Circle with border
- Center image using text-align center?
- CSS Background Opacity [duplicate]
- How can I center text (horizontally and vertically) inside a div block?
- Center image horizontally within a div
- Remove CSS class from element with JavaScript (no jQuery) [duplicate]
- Prevent line-break of span element
- Is there any way to change input type=”date” format?
- What is the meaning of == $0 that is shown in inspect element of google chrome for the selected element [duplicate]
- How to align iframe always in the center
- Expected RBRACE, but the bracket is there?
- How to make an image center (vertically & horizontally) inside a bigger div
- How to center text with Markdown?
- Disable Scrolling on Body
- Darken CSS background image?
- Responsive image map
- How to wrap text around an image using HTML/CSS
- How to make a whole ‘div’ clickable in html and css without JavaScript?
- How (and why) to use display: table-cell (CSS)
- Vertical Text Direction
- How to darken a CSS background image?
- How can I create a marquee effect?
- Can I add background color only for padding?
- right align an image using CSS HTML
- CSS Background Image Not Displaying
- Changing the width of Bootstrap popover
- Why “Inline-block” doesn’t work properly in this CSS?
- html not linking css
- Removing border from table cells
- bootstrap 3 navbar collapse button not working
- how to center an inline div using css?
- How to get CSS to select ID that begins with a string (not in Javascript)?
- Setting table row height
- How do I disable the resizable property of a textarea?
- How can I insert vertical blank space into an html document?
- Is it possible to set the equivalent of a src attribute of an img tag in CSS?
- How to display a gif fullscreen for a webpage background?
- Padding a table row
- Is there a CSS selector for elements containing certain text?
- How to align 3 divs (left/center/right) inside another div?
- How to make a
- display in a horizontal row
- Align an element to bottom with flexbox
- Failed to decode downloaded font
- How can I change the thickness of my
tag - Center HTML Input Text Field Placeholder
- creating a chevron in CSS
- How to create spoiler text?
- jQuery scrollTop() method not working
- How do I center text in a span?
- text-align justify not working
- How to make fixed header table inside scrollable div?
- Best way to center a on a page vertically and horizontally?
- CSS Equivalent of the “if” statement
- How to make a div 100% height of the browser window
- How to resize an image to fit in the browser window?
- HTML / CSS table with GRIDLINES
- Layout a flex box similar to a table?
- How to align this span to the right of the div?
- WordPress Admin Bar Overlapping Twitter Bootstrap Navigation [closed]
- how to setup content on a static frontpage with css and xhtml
- How to integrate my HTML and javascript into my child theme
- Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )
- How do I add a custom css to all posts without affecting homepage css? [closed]
- Wrapping a Sidebar within
- HTML email sent with wp_mail shows plain text
- How to make home widgets appear horizontally
- Link to page with posts of specific type
- How to avoid repeating similar properties for all tds of a table in a wordpress post
- Displaying images outside the content
- PHP function for horizontal Woocommerce thumbnails and badges
- How do I change the color of individual page titles in WordPress?
- dynamic php menu with hidden sub-categories only showing when the category name is clicked
- Drop down question
- how to modify html on homepage (no home-page.php in my theme)
- current menu item hover not working?
- Target a specific container to style on WordPress storefront theme
- Responsive Dropdown Menu
- Css style removed but still showing via CDN even after clearing browser cache and purging all caches for site
- Move text from the side of image to below image [closed]
- My contact form is not being responsive
- I cannot make this position properly in WordPress [closed]
- Possible jquery / library conflict in plugin usage
- WordPress – Image href for home menu nav not working
- Cant get theme to change footer color through theme customizer
- change the icon of a custom post type in WordPress to use twitter boostrap
- I need css code to divide my webpage sections into two columns
- CSS – Change height of Storefront / WooCommerce product categories, but not products
- How can I insert a disclaimer in a WordPress site?
- Parse error: syntax error, unexpected ‘}’ in
- Option value not getting updated until page refresh in WordPress
- How to create a “Most Popular” & “Latest” TAB in WordPress