473,396 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Footer ok in IE but not in mozilla or opera

228 100+
Hi,
I just checked my homepage against 3 of them and found that footer doesn't dispaly well in mozilla n opera. The code is as follows:


<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style>
#holder {width:95%; margin-left:auto; margin-right:auto; background-color:#fff; border:#CCCCCC 1px solid;padding-bottom:0;}

#banner {width:100%; height:200px; border:0;}

#location {background-color:#F4F7FB; color:#000; height:20px; font-size:11px;}
#location a {text-decoration:none;}
#location a:hover {text-decoration:underline;}

#footer {display:block; clear:both;font-size:11px;color:#333333; width:100%; text-align:center; background-color:#00CCFF; height:30px;}
#footer a {text-decoration:none; color:#333;}
#footer a:hover {text-decoration:none; color:blue;}

#sitelinks {text-align:right;font-size:11px; padding:3px;}
#sitelinks a {text-decoration:none;}
#sitelinks a:hover {text-decoration:underline;}

</style>
<title>HOMEPAGE</title>
</head>

<body>
<div id="holder">
<div id="sitelinks"><a href="#">Accessiblity</a></div>
<div id="header">
<img src="http://bytes.com/images/logo.jpg" alt="My banner" id="banner"/>

<div id="menus">
<ul>
<!-- CSS Tabs -->
<li><a href="Home.html"><span>Home</span></a></li>


</ul>
</div>

<div id="location">
You are in: Home
</div>

</div><!--END HEADER-->


<div id="footer">
Copyright (C) 2010. All rights Reserved.
<p> | <a href="#">Privacy Policy</a> | <a href="#">Contact us</a> | <a href="#">Help</a> |</p>

</div>

</div>
</body>
</html>


Please see the output for yourself and get back to me.
Feb 13 '10 #1
2 1730
samvb
228 100+
I tried inserting a div before the footer, with clear:both. but now, the holder div doesn't extend to include the footer? The footer seems to have been out of the main holdin div (.e. "holder")

P.S. Is there any way to delete posts in bytes?
Feb 13 '10 #2
drhowarddrfine
7,435 Expert 4TB
You don't need the 'clear'. The reason the footer doesn't extend is because you set the height to 30px which is too short to hold the content. Remove the height property altogether.

It doesn't matter how it looks in IE till you get it working in a modern browser.

No, you cannot delete posts.
Feb 14 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: tony kulik | last post by:
This code works fine in ie and opera but not at all in Mozilla. Anybody got a clue as to how to get it right? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <script...
82
by: Peter Diedrich | last post by:
The site design is pretty simple: ============================================ | Head | ============================================ | | ...
5
by: Juergen Schulz-Bruessel | last post by:
Hi, I spent quite a while to solve a problem (and noticed during my research that the question was asked quite often, but I didn't find the answer :-( ) We would like to place a footer...
3
by: Tony Benham | last post by:
I've added a footer div to a website, which I've positioned using div#footer {width : auto ; border : 0 ; position : absolute ; bottom : 0 ; margin : 1.33em 1.33em 1.33em 1.33em ; background :...
3
by: Pete Gray | last post by:
I have this in my style sheet: ..intro { font-size:1.2em; font-family:"Comic Sans MS", cursive; letter-spacing:0.1em; } p.intro:first-letter {
4
by: Gary Finnigan | last post by:
Hi I am having difficulty in placing a footer at the bottom of my page. Can anyone suggest what I'm doing wrong? www.clickatdepaul.org Regards Gary -- Regards
6
by: Quintus Snapper | last post by:
Hi everyone. I'm just making new HTML pages for a site. This time round I've brushed up on my CSS and trying to use as much of it as possible and as well as trying to keep it W3C compliant. So...
4
by: Stian Lund | last post by:
Hi, I'm trying to create a 2 column layout with a footer on the bottom, where the (fixed-width) sidebar follows the content in the code, while showing on the left hand side of the content. The...
5
by: PhilM | last post by:
I am attempting to have a floating image below page content, but above <body> In order to get this to work with mozilla+opera, am I required to have all page content set at z-index>(some...
7
by: Xavier Onassis | last post by:
I would be grateful for recommendations for a CSS layout (header, 2 cols, footer) that can accomodate dynamically added elements. I am not having any luck so far getting this to work in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.