yes, probably it is related to this topic, but I’m not sure.
with my fresh installation of IN - v5.1.21-C44 in docker I’m not able to get the footer at the bottom of the generated invoice.
when I add a footer in the tab “Footer” I see the following in generated pdf:
the line “Footer Footer…” must appear at the bottom of the page, however, it is appearing exactly after the end of the content of the invoice.
I’m not an expert in css, I’ve tried to add styles to
#footer like - bottom:0; position:relative and similar… but all my attempts made no difference.
the switch - footer on all pages or only on the last page also made no difference.
As a basis, I use the template Business.
any ideas or suggestions on how to place it properly?
I had exactly the same issue. Add these to lines to
You were almost there - the position cannot be relative
I’ve tried it, but it wasn’t successful.
last time I’ve defined
<style> block in the footnote to manage styles in the way:
and haven’t got necessary result
now I’ve tried inline style:
<div id="footer" style="position:fixed; bottom:0; >
and it works. thank you for pointing the exact right way.
Now I have the content overlapping the footnote :/. I saw this issue opened somewhere already … will search for it.
@ben, any thoughts on this, can we make it work out of the box?
This can be really hacky, we had tried this with our logo for white label. At the end of the day, that should work just fine if you have one page. For multiple pages, that fixed (and z-index) will cause a ton of pain & it’s really tricky to get it working.
When I was researching for a solution to this, I came across this code on github (links to the article are in the code). It was designed specifically to cope with single and multi pages.
A4 CSS page template.markdown
A4 CSS page template
basic CSS template for A4 print
Forked from [rafaelcastrocouto](http://codepen.io/rafaelcastrocouto/)'s Pen [A4 CSS page template](http://codepen.io/rafaelcastrocouto/pen/LFAes/).
A [Pen](http://codepen.io/dermotmcguire/pen/ZbQWWz) by [Dermot McGuire](http://codepen.io/dermotmcguire) on [CodePen](http://codepen.io/).
There are more than three files.
How does this work with other formats? A3? JIS-B5?
@ben I would guess you change the dimensions of the page in the stylesheet and rename those sections to A3, Letter or whatever.
What do you think about adding this into core,
It should indeed be integrated into the core:
We’re in process of ditching these options, as they didn’t work as planned. For now Bold & Modern will have repeat header/footer and rest of the designs will use standard layout.
However, you can make custom design with CSS & HTML provided by Bold.
Here’s the source code, I’ve left comments so it is easier for the people to understand.
This file has been truncated.
font-family: Arial, Helvetica, sans-serif;
margin: -0.25cm !important;
size: $page_size $page_layout;
Thanks ben. Can you tell me which part of the css needs to be applied to Plain design to fix the footer problem?
It’s a bit tricky to achieve it with Plain as it needs structural change. We have a plan to make this dynamic option in the future, so for now we suggest using either Bold or Modern to achieve this functionality.