Wednesday, 18 November 2009

Stopping the Footer appearing half way up the page

As mentioned in my previous post, which shows a screenshot of the problem, I needed to stop the footer of my site from appearing half way up the page on some of the pages, when viewed in IE6 and IE7.

After a LOT of Googling and Tinkering, I used this advice, which fixed the problem in IE6 but not IE7:

http://drupal.org/node/482420?mode=2&sort=2

After EVEN MORE tinkering, I eventually fixed the problem by adding the following line of code (to around line 226 in my case) to page.tpl.php:

<br clear="all" />

Here's some info on what that code does.

Phew - I am so relived!


----

Incidentally, this is the first time I've tried pasting a code example in a Blogger post (shown above). It should have occurred to me that this is not as easy as it looks as, rather than just displaying the code, Blogger actually attempts to follow the code (hence on my first attempt the code above just vanished).

If you ever need to display code in a Blogger post (or Wordpress, I'd imagine), here's how it's done

Long explanation:
http://www.bloggerbuster.com/2007/11/how-to-display-code-properly-in-your.html

Quick way (paste your desired code into this page and use the resulting 'parsed' code in Blogger instead):

http://www.blogcrowds.com/resources/parse_html.php

No comments:

Post a Comment