Jump to content
dokether

5Px Gap At Bottom Of Footer

Recommended Posts

dokether

So I'm a fairly experienced developer with php and css, and I'm finding a small problem with the pagelines framework that I can't seem to fix. There appears to be a 5px gap at the bottom of my pagelines sites that I'm unable to find the cause of.

HTML, BODY, div#site, and footer#footer, the only elements I could think of that would cause this, all have their margin/padding set to 0. When I turn the body background off/on, it is showing that it is the BODY element showing through. When I click on it using firebug, firebug highlights the html element. In the image below, the green line is where the browser should be sitting, but for some reason it has that 5px gap below the site.

site_screenshot.png

And this is a more visible example from another site I'm working on. The light beige/green at the bottom shouldn't be there and I'm not sure how to get rid of it:

site_screenshot_2.jpg

Share this post


Link to post
Share on other sites
thejinxters

I too am having this problem on my sites. Adjusting margins and padding does not appear to fix it. I've tried adjusting on html, body, site, and footer with no avail. Also, It seems to appear with all web layout handler options and site design mode options.

here is one of the sites I am developing right now with that issue:

http://radicalcoaching.com/

Share this post


Link to post
Share on other sites
Rob

Usually when this happens there's some code error of some kind, such as an extra empty paragraph tag or a missing ; in CSS. It can also be an empty div. Had you removed anything from the footer area like a sidebar?

Unfortunately, I cannot find anything looking at it and so I'm going to escalate this, but while I do, please copy your custom code and paste it into the Direct Input tab here and validate: http://jigsaw.w3.org/css-validator/

This will tell you if there's anything wrong with your custom code.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
thejinxters

I think it is something with the newest version of pagelines. I have a website with no custom code... just a straight install that was running an older version of pagelines and there was no gap. I updated to the latest version and now the gap is there.

http://aslimmehcg.com/newsite/

Share this post


Link to post
Share on other sites
Rob

I will discuss this with our developers.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
dokether

Yeah, the only thing the validator returned was a couple of filter references for IE — filter:alpha(opacity=50); — which obviously wouldn't cause this. Thanks for looking into this.

Share this post


Link to post
Share on other sites
Rob

As soon as I hear back from our developers, I'll let you know.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Simon

Well im no css expert, but 2 mins with firebug lef me to :

#footer { padding-bottom: 10px }[/CODE]

Share this post


Link to post
Share on other sites
dokether

Do you know what line or file that is from? It isn't showing up in my firebug and I just did a search in my style.css and it says that that line can't be found?

Share this post


Link to post
Share on other sites
catrina

You don't need to find it in your CSS file to adjust it. You can simply add it to Site Options > Custom Code > Custom CSS and it should overwrite the existing line.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
dokether

Yes, but my point is that I would like to find out where it is happening so I can correct it at the source instead of needing to include a line resetting this padding in every website I develop.

Share this post


Link to post
Share on other sites
catrina

It isn't advised to correct the file if it's a core file (not a child theme) because that change will be overwritten when you update the theme.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
Rob

Simon seems to have found it, mysteriously in Firebug. It could be in any one of a myriad of places, from a plugin to WP to something totally unexpected. I apologize for the confusion. I'm curious too, as to where it originated.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
olly54

I have the same problem tried the code simon found but it does not work for me?

Share this post


Link to post
Share on other sites
Rob

Did you paste Simon's code as is?

Because what he found and posted is what causes the problem. The proper solution is:


#footer { padding-bottom: 0; }


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
dokether

You can view that exact line of code at heartbeing.com on line 174 of my style.css (viewable in Firebug). Still got a gap at the bottom unfortunately.

Share this post


Link to post
Share on other sites
Rob

The only thing I can think of would be a plugin that's conflicting with the same code and overriding the code you have.

Despite having it, paste the code into Custom Code > CSS Rules and see if that takes control of the situation.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Danny

Olly,

Can you provide a link to the site in question please.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
beardedavenger

This is in the reset.less file.

http://screencast.com/t/GEVDsoRVvD

For some reason, the margin:0 being applied to body is actually doing the reverse. To fix;

1. Create a /less directory in your child theme.

2. COPY (not move) reset.less from pagelines/less into your childs /less directory

3. Remove body from the reset. http://screencast.com/t/6sZLTdxs

4. In your style.less, add

body {margin-left:0;margin-right:0;}

Without spending a lot of time I really can't tell you why it's doing that. I haven't seen this pop up on any of the sites I've been doing so that's kinda strange. None the less, hope this helps.


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
dokether

Hrm.... I did as you asked, and it doesn't seem to have fixed the site. I added the reset.less into the less folder (see attached image) and edited it as you specified. I also re-saved my pagelines settings in the backend to force a re-build of the less documents... and it is still showing that 5-10px at the bottom (you can see the updated css styles in Firebug). I also looked at it in Safari and Chrome and both of those browsers are showing the same thing. Its like the <body> tag is inheriting it from somewhere that Firebug can't identify because its not showing up anywhere. I've also tried turning off all the plugins as per Rob's earlier suggestion and it was still there.

Also, I just downloaded a fresh copy of Wordpress, a fresh copy of Pagelines 2.3.6 and installed both as clean installs with no modifications at all. That gap is there still...

post-30217-0-01949400-1354052219_thumb.j

Share this post


Link to post
Share on other sites
James B

Another case with the same issue has just had a response issue which worked for the user, check out http://www.pagelines.com/forum/topic/23571-random-space-outside-page-area/


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
beardedavenger

Weird, works for me on the site I'm currently working on. Did you add margin-left:0 and margin-right:0 to your body in less?


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • chamois_blanc
      By chamois_blanc+
      Hello,
      Shouldn't the image PL5 component be using the srcset/picture css directives to pick the correct size for an image? or it does already and I don't know how to use it? Thank you for any advice or enlightenment.
    • Paul
      By Paul+
      I was surprised to see I had no menu today - out of the blue - its actually moved to the bottom of the page!  After hours of fiddling and disabling every single plugin, leaving just plagelines the issue is still present.  See video for a basic text box - I moved it into the head and it jumps to the bottom and shows just above the footer but below the main content.  I have a temp fix by placing the menu into the first row on the main content but it does mean other than my home page, all other pages have no menu.  A quick fix is very urgent for this bug.
      https://thelaptopfixers.com
       
       
    • Dan Haddock
      By Dan Haddock
      Plugins Active and installed: 
      Akismet Anti-Spam
      Coming Soon Page & Maintenance Mode by SeedProd
      Contact Form 7
      Cookie Law Info
      DMS Professional Tools  
      Enhanced Media Library  
      Flamingo
      Google Analytics for WordPress by MonsterInsights
      Google XML Sitemap
      Jetpack by WordPress.com
      Legull 
      Loginizer   
      MailChimp for WordPress
      PageLines Updater    
      Schema App Structured Data 
      Sucuri Security - Auditing, Malware Scanner and Hardening
      Uber reCaptcha    
      Yoast SEO
      Wordpress Version: 4.8.1
      Pagelines Version: 2.2.4
       
      Good Evening/Afternoon or Morning, 
      I am running into a problem with CSS styling not applying inside of most browsers (Safari, Firefox) when I am logged in to wordpress, and all browsers that I have tested when I am logged off and the site has been made public (Chrome, Firefox and Safari).
      As a result, I have managed to identify the probable cause. It looks as though these browsers are refusing to render my sites compiled CSS file due to it being a HTTP URL rather than HTTPS.
      I have attempted to change this URL to HTTPS in my browser, however it brings back an ERROR: File not found page - https://www.shortfilmblog.com/wp-content/uploads/pagelines/compiled-css-core-1505847507.css
      What would you suggest in this regard? Would this be resolvable from your end?
      Happy to provide any further details required.
    • Borries
      By Borries+
      I know this is not an easy problem. Maybe there is a easy solution.
      I have tryed to uses the existing solution, that I have found in the forum
      I changed the colours of my nav (simple nav) and the hover effect (a. hover).
      I really tryed to highlight the active/used link in the nav but I cant figure it out.
      I want it to be black when active.
      Any help would be appreciated. Thanks.
      http://www.marcborries.de  nav link: "Sinn & Selbst" 
    • Michael Kummer
      By Michael Kummer+
      Hi guys,
      every since Chrome introduce scroll anchoring (see chrome://flags) blog posts on my page start scroll automatically as soon as the user scrolls down a bit. It is super annoying and I don't know exactly what triggers the incompatibility with Chrome's latest feature that is supposed to improve usability.
      Since I don't know what causes it (Pagelines, or a Plugin), I would like to disable the feature using a CSS override that Google describes as follow:
      "Scroll anchoring aims to be the default mode of behavior when launched, so that users benefit from it even on legacy content. A CSS property overflow-anchor can disable scroll anchoring in part or all of a webpage (opt out), or exclude portions of the DOM from the anchor node selection algorithm. This property supports the following values when applied to an element E:
      overflow-anchor: auto (the default value) declares that the DOM subtree rooted at E is eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E. overflow-anchor: none declares that the DOM subtree rooted at E is not eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E." Do you guys happen to know how to use that property with the ROOT element so it applies to the whole page?
      Thanks
      Michael 
×