• Resolved nethan

    (@nethan)


    I’m getting an unwanted blank line between the end of my content and the beginning of my footer. Looking at the source and at the page in Firebug there seems to be a

    <div style="clear: both;">&nbsp;</div>

    being inserted between the </div> for #page and the </div> for #content. The clear both isn’t in any of my CSS or in index.php or footer.php so I’m not really sure where it’s coming from unless the core generates it somewhere. Having the clear there is actually probably not a bad thing as there are some floats further up, but I don’t want the   as part of it.

    Anybody know where I can get rid of it from?

    Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter nethan

    (@nethan)

    Ok… that last bit should be that I don’t want the &nbsp;in the div clear tags…

    Please post a URL.

    Thread Starter nethan

    (@nethan)

    Is your site built off one of the Grid frameworks? If so looking for CSS pseudo-structure in your files such as name:before and name:after where name is the element in question. I’ve seen this used in a few of them.

    Thread Starter nethan

    (@nethan)

    Not following you CSD_Images… sorry. I’m kind of a hack when it comes to CSS. The theme is pretty much put together from scratch. I think I started with the default TwentyTen theme for the CSS and cut and pasted what I needed.

    Can you post the code for that page via pastebin?

    Thread Starter nethan

    (@nethan)

    css

    index.php

    That’s a cool website. I didn’t know about it.

    OK this is weird, there’s nothing on that page that resembles the output.

    here’s a quick tip. To ensure you’re loading the right page under the banner temporarily add a echo statement with a keyword that you’ll recognise.

    Such as:

    ‘<?php echo “test” ?>’

    Just stick this above the content declaration.

    That way we can determine what page is being loaded, but I don’t think that one is being loaded.

    Thread Starter nethan

    (@nethan)

    Yep… So I’m an idiot. I had a template page set up and was using it for that specific page. I entirely forgot about it. At that bottom of the template page was the div clear:both with the blank space in it.

    Problem solved.

    Thanks so much for your help.

    Chuckle, it’s always the obvious problem that blind sides you.

    It’s a useful tip to remember is that echo statement, it’s solved me a few headaches as well.

    Another good trick to remember is to use the following declaration in CSS to determine if you’re targeting the right element:

    outline: 1px solid red;

    You can change red to green/blue depending on the theme, but stick that into the element declaration and it will show what’s being targeted where.

    All the best.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Unwanted space between content and footer’ is closed to new replies.