Jump to content

Archived

This topic is now archived and is closed to further replies.

photolinkindia

Footer does not stay at the bottom of window

Recommended Posts

photolinkindia    0
photolinkindia

Hi,

 

I can't get the footer to stay touching the bottom of the window. There is a whitespace below it when I have less content on page.

 

I have tried position: fixed in CSS for the footer. But then the footer is always on screen hiding the content.

 

How can I get fix this?

 

 

URL : photonicsenterprise.com

Pagelines: 2.1

Wordpress Version: 3.9.1

 

Screenshot:

http://imgur.com/A72ySVD

 

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

HI,

 

This because of you do not have enough content, you can either increase the min-height following James suggestion here - http://forum.pagelines.com/topic/24173-sticky-footer/ 

 

Or you can remove your footer completely and create a sticky element instead using my example here - http://forum.pagelines.com/topic/35005-the-fixed-header-section-on-bottom/?p=206984

 

If you're not comfortable with custom code such as the one I linked above which creates a sticky element, then you will want to use James suggestion or add more content to your page.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
photolinkindia    0
photolinkindia

Hey Danny,

 

I have tried the CSS fixed footer option but that is not what I want. I don;t want the footer to cover my content. 

 
.footer{
     width:100%;
     height:56px;
     position:absolute; 
     bottom:0;
    }
I have used this code and this works for the pages with less content. But on pages with full content, it drops the footer in middle of the page.
I am a bit confused why is that happening. Since you know the structure of your theme better, please can you advise me on this.
 
Thanks
Jinesh

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Can you provide an example of this sticky footer being in the middle of the page when the page has full content. As I tested that code before adding it to that topic and I never once encounter that problem.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
photolinkindia    0
photolinkindia

Your code has the position: fixed; which keeps the footer on the screen all the time. I want the footer to stay at bottom of window and bottom of cotent.

 

I am using position: absolute; which fixes my problem on short pages. See screen grab:

 

http://imagizer.imageshack.us/v2/640x480q90/843/3yjc.png

 

And on long pages:

 

http://imagizer.imageshack.us/v2/640x480q90/840/a28.png

 

 

 

 

 

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Unfortunately, this isn't something we can provide assistance with as this is your own code. We do not provide support for user created code, you will need to ask this on a CSS specific forum or try Stack overflow.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • Lisa Haran
      By Lisa Haran+
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      Hello,
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Akismet
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      WooCommerce
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
    • flourishdesignstudio
      By flourishdesignstudio
      Is there a way to edit the custom CSS via FTP? I know I can edit the custom code in the Chrome editor but is there a file path I can use to find and edit the CSS directly from our FTP?
      Thanks in advance for the help!
    • nizami
      By nizami+
      Using navbar section with correctly configured WP menu to display main navigation at https://elenaangel.com. 
      All fine in desktop viewport. Menu displays twice in hamburger mode. How to fix this please? 

×