Results 1 to 14 of 14

Thread: Footer problem

  1. #1
    Join Date
    Jul 2006
    Posts
    62

    Default Footer problem

    Hi All

    Have a issue with website the footer see attached image, this has just started to happen and I've made no changes to website.

    It looks ok in Firefox but not in IE7.

    Any ideas.

    Roger
    Attached Images Attached Images

  2. #2
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Either you have never noticed the above or you made a change, even if inadvertent, that caused it.

    look for missing DIV(s) or /DIV(s).

    e.g., the following:

    <div> <---DIV #1 - I'd say you added this DIV
    <div class="content_2"> <---DIV #2 - added by INDEXU
    <div class="search_field"> <---DIV #3 - added by INDEXU
    <!-- Google CSE Search Box Begins -->
    <form action="http://www.fish4carp.co.uk/gsearch.php"
    id="searchbox_009691959962705109733:yohjl78uj4q">
    <input type="hidden" name="cx"
    value="009691959962705109733:yohjl78uj4q" />
    <input type="hidden" name="cof" value="FORID:11" />
    <input type="text" name="q" size="25" />
    <input type="submit" name="sa" value="Search" class="button" />
    </form>
    <script type="text/javascript"
    src="http://www.google.com/coop/cse/brand?form=searchbox_009691959962705109733%3Ayohjl 78uj4q"></script>
    <!-- Google CSE Search Box Ends -->
    </div> <---/DIV #1 - I'd say you added this DIV - but this actually closes DIV #3, the search_field DIV

    Here is the actually indentation so you can see that the last DIV aligns with the first DIV and not the last
    Code:
    <div>
      <div class="content_2">
        <div class="search_field">
        <!-- Google CSE Search Box Begins  -->
        <form action="http://www.fish4carp.co.uk/gsearch.php" 
    id="searchbox_009691959962705109733:yohjl78uj4q">
        <input type="hidden" name="cx" 
    value="009691959962705109733:yohjl78uj4q" />
        <input type="hidden" name="cof" value="FORID:11" />
        <input type="text" name="q" size="25" />
        <input type="submit" name="sa" value="Search" class="button" />
        </form>
        <script type="text/javascript" 
    src="http://www.google.com/coop/cse/brand?form=searchbox_009691959962705109733%3Ayohjl78uj4q"></script>
        <!-- Google CSE Search Box Ends -->
    </div>

    Others may be lurking about, so keep searching.

    Death to Tables, Long Live DIVs



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  3. #3
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    i fixed this for you a while back, its a div tag missing, i think its in the footer.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  4. #4
    Join Date
    Jul 2006
    Posts
    62

    Default

    Hi inspireme

    Can you remember where the missing div tag was as I haven't changed anything on my site and it just started to do this again.

    Cheers

    Roger

  5. #5
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    hmm yeah, i think you add </div>

    to end of header ... looking at the picture, but i cant remember exactly
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  6. #6
    Join Date
    Jul 2006
    Posts
    62

    Default

    Hi

    Had a look at header and there is a div tag there, site was ok the other day made no changes and have problem again, very odd.

    Roger

  7. #7
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    you need to add another one, the arent balanced, you will have loads of div tags all over the place.

    To be honest, if your not sure how layouts with div tags work it will be hard to identify where the problem is coming from, your best bet is to add </div> to end of header and upload... fi that doesn't work try the start of the footer file, if that doesnt work then youll need someone to take a look at it and work out where exactly the div tag needs to be.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  8. #8
    Join Date
    Jul 2006
    Posts
    62

    Default

    Hi inspireme

    Tried all that but still no joy this is driving me "nuts" site was ok the other day now this problem again AHHHHHHHHHHHHHH.

    Roger

  9. #9
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by inspireme View Post
    you need to add another one, the arent balanced, you will have loads of div tags all over the place.
    yep, lots of DIVs

    One technique I use is to work from the "middle out." Find a pair of matching DIV and /DIV. Delete the code in between. I generally leave the DIVs there.

    for example

    <div class="list_dot">
    <ul><li><a href="http://www.fish4carp.co.uk/detail/537/the-fishing-bag.html" name="link_537"><b>The Fishing Bag</b></a>
    <br />
    <div class="small">We are a small family-run business and our aim is to provide a fast and efficient mail order service to the carp angler. PVA Bags, Leads, Leadcore plus much more.
    <br />
    <table cellpadding="0" cellspacing="0">
    <tr>
    <td valign="top">Category: &nbsp;</td>
    <td valign="top">
    <a href="http://www.fish4carp.co.uk/tackle-shops-online/" name="cat_49" style="font-size: 11px; color: #666; ">Tackle Shops Online</a> > <a href="http://www.fish4carp.co.uk/tackle-shops-online/uk/" name="cat_50" style="font-size: 11px; color: #666; ">UK</a>
    <table width="100%" border="0" cellspacing="0" cellpadding="2" style="background-color: #edf9fc; color: #FFFFFF; border: 1px solid #ffcc33; text-align: left;">
    <tr bgcolor="#85bdd8">
    <td>Rankings</td>
    <td>Backlinks</td>
    <td>Indexed Pages</td>
    </tr>
    <tr>
    <td>
    <table width="100%" border="0" cellspacing="0" cellpadding="2" style="background-color: #edf9fc; color: #000000; border: 1px solid #85bdd8;">
    <tr>
    <td width="16"><img src="seostats/google.gif" width="16" height="16" alt="Google PR" title="Google PR" /></td>
    <td>1/10</td>
    <td width="16"><img src="seostats/alexa.gif" width="16" height="16" alt="Alexa Rank" title="Alexa Rank" /></td>
    <td>1,341</td>
    </tr>
    </table></td>
    <td>
    <table width="100%" border="0" cellspacing="0" cellpadding="2" style="background-color: #edf9fc; color: #000000; border: 1px solid #85bdd8;">
    <tr>
    <td width="16"><img src="seostats/google.gif" width="16" height="16" alt="Google Backlinks" title="Google Backlinks" /></td>
    <td>0</td>
    <td width="16"><img src="seostats/yahoo.gif" width="16" height="16" alt="Yahoo Backlinks" title="Yahoo Backlinks" /></td>
    <td>1,676</td>
    </tr>
    </table></td>
    <td>
    <table width="100%" border="0" cellspacing="0" cellpadding="2" style="background-color: #edf9fc; color: #000000; border: 1px solid #85bdd8;">
    <tr>
    <td width="16"><img src="seostats/google.gif" width="16" height="16" alt="Google Indexed Pages" title="Google Indexed Pages" /></td>
    <td>0</td>
    <td width="16"><img src="seostats/yahoo.gif" width="16" height="16" alt="Yahoo Indexed Pages" title="Yahoo Indexed Pages" /></td>
    <td>0</td>
    <td width="16"><img src="seostats/msn.gif" width="16" height="16" alt="MSN Indexed Pages" title="MSN Indexed Pages" /></td>
    <td>1,050</td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>

    </div>
    </li></ul>
    </div>

    which becomes:

    <div class="list_dot">
    <ul><li><a href="http://www.fish4carp.co.uk/detail/537/the-fishing-bag.html" name="link_537"><b>The Fishing Bag</b></a>
    <br />
    <div class="small"></div>
    </li></ul>
    </div>

    which becomes:

    <div class="list_dot"><div class="small">
    </div></div>
    which becomes:

    <div class="list_dot">
    <div class="small"></div>
    </div>
    It's tedious and you still have to be careful

    Sometimes TIDY can help, but it will often put the missing </DIV> in the wrong place.


    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  10. #10
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    As a note - HTML doesn't just remove itself. Users remove it, edit it, kill it, restore old backups, restore incorrect files and so on. If you didn't alter it, then someone else did.

  11. #11
    Join Date
    Apr 2008
    Posts
    21

    Default

    Hey Roger,

    Try this below and see if it works, at the bottom of your search form, insert the DIV tags and BR. It has worked for me in the past.
    *** Remember to clear your cache when done****
    ----------------------------------------------------------

    <div class="content_2">
    <div class="search_field">
    <!-- Google CSE Search Box Begins -->
    <form action="http://www.fish4carp.co.uk/gsearch.php"
    id="searchbox_009691959962705109733:yohjl78uj4q">
    <input type="hidden" name="cx"
    value="009691959962705109733:yohjl78uj4q" />
    <input type="hidden" name="cof" value="FORID:11" />
    <input type="text" name="q" size="25" />
    <input type="submit" name="sa" value="Search" class="button" />
    </form>
    </div>
    </div>

    <br />
    Last edited by inrated; 05-14-2008 at 02:01 AM.

  12. #12
    Join Date
    Jul 2006
    Posts
    62

    Default

    Hi inrated

    Thanks tried your solution but no luck still have same issue, this is driving me mad.

    Roger

  13. #13
    Join Date
    May 2004
    Location
    New Zealand
    Posts
    600

    Default

    i just downloaded your page... and to me it looks like you have exactly the same amount of div and /divs (92 according to me.... maybe wrong though)

    If i was taking a guess id say you need to re-arrange your footer file.....thats where you see to have alot of /divs and i think you need to close some of them off before you put the actual footer code.... it doesnt seem ordered to me....

    Hope this helps...

  14. #14
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    Send me ftp details if you want me to look at it.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

Similar Threads

  1. footer problem
    By david22585 in forum v5.x
    Replies: 3
    Last Post: 01-04-2008, 07:04 AM
  2. Cant use <%fields%> in footer?
    By Mortekai in forum v5.x
    Replies: 16
    Last Post: 03-05-2004, 04:39 AM
  3. PHP in header/footer
    By nicke in forum v5.x
    Replies: 17
    Last Post: 02-23-2004, 09:49 AM
  4. Footer Problem
    By Sticks in forum v5.x
    Replies: 3
    Last Post: 11-01-2003, 03:31 PM
  5. costum footer
    By iokasti in forum v5.x
    Replies: 12
    Last Post: 09-25-2003, 07:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •