Issue #3513Opened June 3, 2021by sizhousama0 reactions

[QUESTION]:How to make a custom block always be at the bottom of the page

Question

How to make a custom block always be at the bottom of the page?

Answers (2)

YyueeiWYJune 6, 20210 reactions

u need display flex

Code SnippetTEXT
for ur case align every block at end, use (  align-content: flex-end; ) in body or parents element
<pre>
&lt;body class="flex-container flex-end"&gt;
  &lt;div class="flex-item"&gt;1&lt;/div&gt
  &lt;div class="flex-item"&gt;2&lt;/div&gt
  &lt;div class="flex-item"&gt;3&lt;/div&gt
  &lt;div class="flex-item"&gt;4&lt;/div&gt
  &lt;div class="flex-item"&gt;5&lt;/div&gt
  &lt;div class="flex-item"&gt;6&lt;/div&gt
&lt;/body&gt

html, body {
  height: 100%;
}
.flex-container {
  float: left;
  width: 100%;
  height: 100%;
  border: 1px solid silver;
  
  -ms-box-orient: horizontal;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -moz-flex;
  display: -webkit-flex;
  display: flex;
  
  -webkit-flex-flow: row wrap;
  flex-flow: row wrap;
}

.flex-end { 
  align-content: flex-end; 
}

.flex-item {
  width: 100%;
  background: red;
}
</pre>
artfJune 21, 20210 reactions

Hi @sizhousama the easiest way probably could be some kind of CSS trick or you can define, by using custom components, a structure with fixed containers (eg. one for the header, for the body and the footer)

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.