Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts

    Footer not clearing

    I'm working on a new site design for my mum but I can't get the footer to clear the right column.

    Currently I've just made sure that all the pages have enough content so that it doesn't show but I'd really like to get it fixed. If you go to:
    http://joyceryan.co.uk/blah you can see the problem.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,855
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Have a try by removing the highlighted portion from there.
    Code:
    #right {
    background-color:#FFFFFF;
    border:1px solid #BBBBBB;
    float:right;
    padding:0px 20px 10px;
    position:absolute;
    right:20px;
    top:364px;
    width:280px;
    }
    Then give some margin-top:34px; to it.
    Last edited by abduraooft; 05-13-2008 at 01:08 PM.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts
    I did that before but in IE it wasn't working - oh well. It works now.

  • #4
    Regular Coder
    Join Date
    Nov 2007
    Location
    127.0.0.1
    Posts
    348
    Thanks
    26
    Thanked 40 Times in 39 Posts
    How do you catch all invalid error urls like
    and display the messages accordingly?
    Blog Charity:Water
    WhatisWrongWith.me/tagnu - Send me anonymous feedback.

  • #5
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts
    Its just a custom 404 page using $_SERVER['REQUEST_URI'] to display the requested uri. I use a framework so all incoming traffic gets routed to my index.php which determines which content to display and if the requested content isn't found then it sets the header and displays the 404 page.

  • #6
    Regular Coder
    Join Date
    Nov 2007
    Location
    127.0.0.1
    Posts
    348
    Thanks
    26
    Thanked 40 Times in 39 Posts
    Thank you for the tip. One more doubt. (Sorry for being off topic)
    Suppose if there's a page by the name /anotherfolder/home.php ? (which is to be included inside 'index.php' for request '/home').

    How would you stop users from viewing it directly like sitename/anotherfolder/home.php?
    Blog Charity:Water
    WhatisWrongWith.me/tagnu - Send me anonymous feedback.

  • #7
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    By adding something like this to the top of the page before any output.
    PHP Code:
    <?php
    if(eregi(basename(__FILE__),$_SERVER['REQUEST_URI']))
    header("Location: http://www.yoursite.com/");
    ?>
    You probably should have asked these questions in the php forum btw...
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #8
    Regular Coder
    Join Date
    Nov 2007
    Location
    127.0.0.1
    Posts
    348
    Thanks
    26
    Thanked 40 Times in 39 Posts
    Thanks Aero!
    You probably should have asked these questions in the php forum btw...
    Won't forget it next time.
    Blog Charity:Water
    WhatisWrongWith.me/tagnu - Send me anonymous feedback.


  •  

    Posting Permissions

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