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

    • yasinyaqoobi
      By yasinyaqoobi
      In the footer of my website, I can't find where Leasing is located. I have to remove it.
       
      http://grandavenueshops.com/
       
       
    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I have noticed that my primary sidebar becomes intermittently invisible when browsing through various blog articles on michaelkummer.com/blog.
      See:
      https://www.dropbox.com/s/z646sgoa3mfjl1j/Screenshot 2018-07-12 15.57.46.jpg?dl=0 and https://www.dropbox.com/s/vdledzzgginvwgv/Screenshot 2018-07-12 15.57.57.jpg?dl=0
      Upon refresh, the sidebar appears. I have been using the following CSS code to hide the sidebar on mobile without any issues. 
      @media only screen and (max-width: 993px) {
      /* hide sidebars */
           .plsb {
              display: none !important;
          }
      }
      I tried to add the following CSS to force the sidebar to show on screens that are wider than 994 pixels but to no avail. Any clue what could be causing this issue?
    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I am using the LESS/CSS Pagelines extension and tried to add the following code to make use of FontAwesome:
      a.c2a:before {
          content: "\f07a\00a0";
          font-family: "Font Awesome 5 Pro";
          Font-weight: 900;
          font-style: normal;
          font-weight: normal;
          text-decoration: inherit;
          padding-left: 4px;
      }
       
      The issue is that as soon as I have the CSS via the Custom Styling text box, Pagelines (or the extension) strips out the backslashes (\). As a result, I had to abandon the CSS/LESS extension and instead add all my CSS code to a separate .css file.
      Is there a fix or workaround for this?
      Thanks
      Michael
    • glyph.marketing
      By glyph.marketing+
      Hello, I am having a problem similar to that experienced by Michael Kummer here. We have pages that show this automatic scrolling issue (examples here and here) and it is sufficiently annoying that we have seen customers bounce while trying to convert. Strangely, it only happens at specific resolutions, so it can be difficult to reproduce. In general we can only consistently reproduce it on a 4k resolution with a browser width between 1517 and 1536px. 
      Thanks to Michael Kummer's help we were able to set the overflow-anchor property to none in the entire body, which fixed the issue as far as we can tell, but also obviously disabled scroll anchoring for the whole site. I tried applying it to the specific element that looked like it was being reloaded, which was the PL Meganav extension, but that was unsuccessful. 
      Can anyone help us figure out which element or ID we can apply this property to, so that we can fix the scrolling issue but not disable scroll anchoring for the entire site?
      Thank you - 
      Glyph Language Services
    • 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.
×