Site logo

Archived topic

Image divider at the bottom of footer

10 replies · Started by Harris on March 12, 2018

Viewing posts 1–11 of 11

Hello,
I was wondering how can I add a divider (image) at the bottom of the footer (below all widgets).
Should I use the footer copyright bar or can it be achieved elseway?

The divider will be the last thing (last pixels) of footer and of whole site

Thanks

I will have to add here that allthough the Inner Footer Width is set to contained (but footer width = Full) the divider should be full screen wide

Hello Leo,
I have tried it (you can see it live) but the footer bar is also contained (no full width) and additionaly I can't "stick" it at the bottom. There is some margin or padding left behind it and I can't state where it comes from.

Thanks
Harris

Hi Leo,

I have already set the margin (and padding) to 0 but there is still a small gap after the image. You can see it live.

I also have already mentioned in my initial post that the footer (the area containing the footer widgets) needs to be contained, but the divider line (hence the footer bar) full width.
Can you please advise me know how can I achieve that by changing the container width as you said?
I mentioned how I now have those settings configured in my initial post.

I also tried using the after footer hook, but I am again getting some margin before and after the image somehow (you can see that live too)
Margin and padding are also set to 0 here and the div height is set exactly as the image height (9px).

Thanks

Can you try changing this CSS you've added:

.after-footer-hook {
    height: 9px;
    border: 0;
    margin: 0;
    padding: 0;
    background: #6290B0;
}

to

.after-footer-hook {
    line-height: 0;
}

Hi

Its better now, but there are still some pixels left after the divider line.

Thanks
Harris

Try adding this to the class:

.after-footer-hook {
    line-height: 0;
    overflow: hidden;
}

Perfect!
Thanks Tom.

You're welcome :)

This archived topic is closed to new replies.