...

View Full Version : Footer not clearing



NancyJ
05-13-2008, 01:52 PM
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.

abduraooft
05-13-2008, 02:05 PM
Have a try by removing the highlighted portion from there.


#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.

NancyJ
05-13-2008, 02:19 PM
I did that before but in IE it wasn't working - oh well. It works now.

tagnu
05-13-2008, 04:11 PM
How do you catch all invalid error urls like

http://joyceryan.co.uk/blah
http://joyceryan.co.uk/blah.php and
http://joyceryan.co.uk/blah/blah.php

and display the messages accordingly?

NancyJ
05-13-2008, 07:48 PM
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.

tagnu
05-14-2008, 10:18 AM
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?

_Aerospace_Eng_
05-14-2008, 04:57 PM
By adding something like this to the top of the page before any output.

<?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...

tagnu
05-19-2008, 04:15 PM
Thanks Aero!

You probably should have asked these questions in the php forum btw...
Won't forget it next time.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum