One potential solution is to swap your content:after
to content:before
.
CSS:
/* .content:after {
content: "";
display: block;
} */
.content:before {
content: "";
display: block;
height: 45px;
}
More Related Contents:
- How do you get the footer to stay at the bottom of a Web page?
- Fix footer to bottom of page
- Position footer at bottom of page having fixed header
- Is there a way to get a web page header/footer printed on every page?
- Bootstrap 4 – Sticky footer – Dynamic footer height
- My Footer Floats
- CSS – Sticky footer [duplicate]
- How to align footer (div) to the bottom of the page? [duplicate]
- Bootstrap 3 Flush footer to bottom. not fixed
- Fixed footer in Bootstrap
- Vertically center element on HTML page with some content on top (Bootstrap)
- Make body have 100% of the browser height
- Using relative URL in CSS file, what location is it relative to?
- How to create a circle with links on border side
- Why the content is not covered by the background of an overlapping element?
- How to animate underline from left to right?
- Drop-down menu that opens up/upward with pure css
- How to wrap text around an image using HTML/CSS
- Fullscreen responsive background image in CSS
- Bootstrap 4 Cards of same height in columns
- Gap in Bootstrap stacked rows
- CSS select elements with partial id
- What is the standard naming convention for html/css ids and classes? [closed]
- Mosaic of images HTML/CSS
- height: 100% for inside with display: table-cell
- How to add the text “ON” and “OFF” to toggle button
- How to make resizeable?
- Hover effects not working with IE8
- Multiple submit buttons on HTML form – designate one button as default [duplicate]
- What are the default values for justify-content & align content?