Footer menu appears in 1e 7 but not FF
Posted: Wed, 2008-08-20 13:54
I have a footer which appears in IE7 but not in FF.
I cant see why.
The site is php based.
Link is http://217.46.159.226/200808/index.php
css for footer
#footer {
width:800px;
margin: 0 auto;
font-size: 9pt; font-family:verdana; color: #000000;
}
#footer {
/* border-bottom: 1px solid #000;
border-top: 1px solid #000;
margin: 0 25px 0 25px;
padding: 10px;*/
clear: both;
}
#footer ul {
margin-left: 25px;
padding: 0 0 20px 10px;
}
#footer li {
padding: 0;
display: inline;
list-style: none;
}
#footer a {
float: left;
line-height: 14px;
font-weight: bold;
margin:0 10px 4px 35px;
text-decoration: none;
color:rgb(153,0,0,);
}
#footer a.active, #footer a:hover {
border-bottom: 4px solid #696;
padding-bottom: 2px;
color: #363;
}
#footer a:hover {
color: #696;
}
#footer p {
text-align: center;
font-weight: bold;
}
Mark up
[code]
function do_html_footer()
{
// print an HTML footer
?>
<!-- End of page-specific content. -->
<div id="footer">
<hr class="hr"/>
<ul id="footer">
<li><a href="About.php">About</a></li>
<li><a href="faq.php">FAQ's</a></li>
<li><a href="index.php">Links</a></li>
<li><a href="Terms.php">Terms &Conditions</a></li>
<li><a href="privacy.php">Privacy Notice</a></li>
<li><a href="contact.php">Contact Us</a></li>
</ul>
<p class="footer">©
<?php
ini_set('date.timezone','Europe/London');
$startYear = 2006;
$thisYear = date('Y');
if ($startYear==$thisYear){
echo $startYear;
}else{
echo "{$startYear}-{$thisYear}";
}
?>
</p>
<p><img border="0" src="images/New Hawkesley 134x60.jpg" width="134" height="60"onmouseover="Tip('We publish e-Book4U.<br />How to guides you can take anywhere', BALLOON, true, ABOVE, true,FADEIN, 600, FADEOUT, 600)"/></p>
</div><!-- End of Footer -->
</div><!-- End of WRAPPER DIV. -->
[/code]


newbie
Posts: 3
Joined: 2008-08-20
Sorry, forgot doc
Posted: Wed, 2008-08-20 13:58
Sorry, forgot doc ref
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Guru
Posts: 2613
Joined: 2005-12-14
Location: Victoria British Columbia
With 200 html errors it's a
Posted: Wed, 2008-08-20 14:00
With 200 html errors it's a wonder anyone can see the page at all! As it is it took fifteen seconds to load on my broadband connection.
The CSS standards apply only to valid html. Without that there actually is no CSS standard to apply and you have no complaint about how any browser renders invalid html.
And you are using tables for layout, which you should never do, as well.
Tear it down and start over with modern methods, is my advice. What you have is a mess, sorry. The page as it is is a page from the 1990s.
I am not now, nor was I ever, any kind of "dude".
Ed Seedhouse
newbie
Posts: 3
Joined: 2008-08-20
at least its only 200
Posted: Wed, 2008-08-20 15:42
at least its only 200 errors.
I have used tables beacause the book layout favours it not becasue I love tables.I'm sure there is still aplace for tables.
Apart from starting again do your 200 errrors say why the bottom menu doestn appear.
I will rebuild this but I have to finnish a version first, errors and all.
I taught myself to create this mess and its the result of a years work.
I retired and took this up to keep my mind active.
Thank you for coming back to me.
Guru
Posts: 2613
Joined: 2005-12-14
Location: Victoria British Columbia
If you want a browser to
Posted: Wed, 2008-08-20 19:19
If you want a browser to adhere to a standard your code has to conform to that standard. Yours doesn't, so you can't expect a browser to conform. It is just a fact, not an opinion, that CSS rules are defined only for valid html. Browsers are expected to correct errors as best they can, but there is no standard way to do it. So if you create invalid html the standards go out the window.
In any event your footer appears the same in IE7 and FF3 on my system.
I used to have to wade through reams of invalid html to make pages work, and I was paid for it. I wouldn't willingly do it again even for pay.
But then I'm an old grouch - perhaps someone less cantankerous will chime in.
I am not now, nor was I ever, any kind of "dude".
Ed Seedhouse