[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)
u need display flex
for ur case align every block at end, use ( align-content: flex-end; ) in body or parents element
<pre>
<body class="flex-container flex-end">
<div class="flex-item">1</div>
<div class="flex-item">2</div>
<div class="flex-item">3</div>
<div class="flex-item">4</div>
<div class="flex-item">5</div>
<div class="flex-item">6</div>
</body>
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>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.
Issue #935
[QUESTION] In creating a custom block how do you create it's corresponding settings?
I want to make a link that will let the user enter the url for it or to let him choose a link to another page which he already created.
Issue #2189
[Question] How to add "Ordered/Unordered List" option in rte/custom block
Hi I'm trying to create an ordered list with grapesjs. I tried adding the following to the rte: And this works if my page is pre-filled wit...
Issue #2143
Question - How can I create an existing image as link
I have an existing template that is currently displaying the image in the middle of the page. Now, I want to make it link or clickable so t...
Issue #2388
[Question] - How to import styles from <link> to be rendered when dragging block to canvas
My situation: I'm slowly importing some of my custom made UI components in ReactJS to GrapesJS. Now, I am able to render the component prop...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.