473,545 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Firefox and IE Issue

4 New Member
Hi All,

Please check the code below as am having trouble viewing the same design in Firefox and IE7. It works fine in IE6 but gets all quirky in IE7 and FF.

The footer stays at the bottom of the viewport but then the text scrolls behind it in IE7 and FF. I need it to be at the bottom of the content at all times. Please help. Currently the styles are in the same htm file but will later be and external CSS. The design is center aligned on the browser and hence some divs have relative positioning. Here is the code:

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>test</title>
  6. <style type="text/css"/>
  7. html, body{
  8. height:100%; min-height:100%;margin:0;padding:0; background-color:#000;}
  9.  
  10. a:link
  11. {
  12. font:Arial; color:#666666; size:75%; text-decoration:none;
  13. }
  14.  
  15. a:hover
  16. {
  17. font:Arial; color:#000000; size:75%;
  18. text-decoration:underline;
  19. }
  20. #maincontainer
  21. {
  22.     background:url(bg.gif) repeat-y;
  23.     height:100%;
  24.     min-height:100%;
  25.     width:975px;
  26.     margin-left:auto;
  27.     margin-right:auto;
  28.     position:relative;
  29.     z-index:4;
  30. }
  31.  
  32. #topcontainer
  33. {
  34.     background:url(navbg.gif) no-repeat;
  35.     position:relative;
  36.     width:968px;
  37.     height:116px;
  38.     padding:0;
  39.     left:3px;
  40.     top:-8px;
  41.     z-index:3;
  42. }
  43.  
  44. #videocontainer
  45. {
  46. background:#ffffff;
  47. position:relative;
  48. width:968px;
  49. height:238px;
  50. padding:0;
  51. left:3px;
  52. top:-5px;
  53. z-index:0;
  54. }
  55. .container
  56. {
  57.     background:url(bgstretch.png) repeat-y;
  58.     width:975px;
  59.     height:100%;
  60.     min-height:100%;
  61.     margin-left:auto;
  62.     margin-right:auto;
  63. }
  64.  
  65. #leftcontainer
  66. {
  67. background:#FFFFFF;
  68. width:250px;
  69. float:left;
  70. position:absolute;
  71. left:3px;
  72. font-family:Arial; font-size:75%; color:#666666;
  73. }
  74.  
  75. #contentbox
  76. {background:#FFFFFF;
  77. width:713px;
  78. position:absolute;
  79. left:258px;
  80. font-family:Arial; font-size:75%; color:#666666;
  81. }
  82. #footer
  83. {
  84.     background:#000000;
  85.     position:fixed;
  86.     bottom:0;
  87.     left:0;
  88.     width:100%;
  89.     height:35px;   /* Height of the footer */
  90.     z-index:6;
  91. }
  92.  
  93. .menubottom
  94. {
  95.     position:relative;
  96.     width:975px;
  97.     height:25px;
  98.     font-family: Arial;    color:#666666;    font-size:70%;    font-weight:bold;
  99.     margin-left:auto;
  100.     margin-right:auto;
  101.     margin-top:10px;
  102.     line-height:2em;
  103.     border-bottom:thin #333333 solid;
  104.     border-top:thin #333333 solid;
  105. }
  106. </style>
  107. </head>
  108. <body>
  109. <div id="maincontainer">
  110. <div id="topcontainer">
  111. </div>
  112.   <div id="videocontainer"></div>
  113.   <div class="container">
  114.   <div id="leftcontainer">
  115.   testtesttesttesttesttesttesttesttesttesttest<br />
  116.   testtesttesttesttestesttesttesttesttesttest<br />
  117.   </div>
  118.   <div id="contentbox">Lorem ipsum dolor sit amet, purus aliquip in fusce erat non, conubia nunc, luctus orci enim libero integer dictum, nibh morbi pharetra magna, curabitur convallis ornare mauris luctus. Et nulla. Volutpat ipsum rutrum pulvinar vehicula, enim justo lacus nec dapibus ut eleifend, sociis amet viverra vel, vitae curabitur cras turpis ligula. Urna enim aliquam felis at pede ante, a dolor sed primis orci, eget maecenas habitasse vivamus, nam ipsum lobortis. Ipsum conubia faucibus aliquam suspendisse, natoque libero ante aenean, et hac dolor arcu, pellentesque feugiat, congue vivamus tempor vivamus etiam taciti. Ac vivamus lacus arcu wisi, rhoncus convallis. Volutpat nam sed amet, consectetuer morbi magna justo ante, auctor nascetur nec, nulla mauris laoreet blandit mauris rutrum. Eget in nam et, ipsum felis ligula, porttitor libero fermentum at, odio curabitur ultrices aenean. Eu pellentesque nec facilisi vehicula at, sollicitudin praesent pellentesque.
  119.  
  120. Hendrerit lacus sit morbi, scelerisque assumenda ipsum pellentesque, ante mattis ornare sollicitudin ut, elementum vitae semper libero sodales. Ipsa sem quis cras orci ipsum, cras pulvinar risus non cumque risus, pede cursus leo. Ut consequat, et potenti purus ultrices vitae tempor, eleifend elit quam vulputate magna, massa elementum quisque ut non elementum. Pede ut cursus, sed elit sapien felis congue tristique, sociis sapien, at id odio cursus sed ac. Fringilla vehicula, sit nisl ante id est etiam ipsum, nullam duis ac, ac porta ipsum convallis, iaculis ante ullamcorper amet sed massa sint. Dui amet faucibus ut elit pede hac, suscipit suscipit in elit, sollicitudin quis, velit adipisci sodales interdum dui, tempore eleifend et urna dolor maecenas. Dictum aliquam tortor a, eros neque scelerisque, at tristique tellus, dictum autem nunc mauris. Odio ultrices, eget vitae sed. A sed per occaecati dolore semper eu, imperdiet et tempor, id commodo suspendisse in, praesent a, magna vulputate velit purus sapien. Tempor eleifend sagittis neque sodales, urna sem maecenas consequat, amet fames ligula nihil wisi.
  121.  
  122. Est posuere ligula velit ut sem, ultrices vel ac urna lorem dolor ultricies, nisl nulla in augue, suspendisse in urna pulvinar posuere phasellus sint, amet aliquam non ut. Eros fermentum, pharetra cursus at sed ligula erat scelerisque. Placerat et ornare rutrum ultricies dignissim, semper consectetuer hendrerit montes, ut litora nulla urna. Aliquam pellentesque, varius vel et ante aliquam pede arcu, rhoncus dolor pulvinar cras leo, nibh sed quisque accumsan nibh neque eget, quis ut pellentesque sapien est sollicitudin. Condimentum ac aliquam leo rhoncus, lectus nonummy. Curabitur adipiscing taciti duis velit. Aliquet id pretium metus, nunc aptent iaculis purus, non egestas.
  123. </div>
  124.   </div>
  125. </div>
  126. <div id="footer">
  127. <div class="menubottom">lorem ipsum</div>
  128. </div>
  129. </body>
  130. </html>
  131.  
Nov 17 '07 #1
1 1364
phvfl
173 Recognized Expert New Member
Hi,

From how I understand your question you are wanting to have the footer at the end of the content at all times, not at the bottom of the window.

If that is the case then the issue is the fixed position of the footer div. IE7 and Firefox have the correct implementation of position fixed which is that the element is positioned in a fixed position relative to the viewport, not the document and that the element remains fixed in that position and does not move when the document is scrolled.

Also you have the style tag is self closing so the code is not valid, the opening style code should be:
Expand|Select|Wrap|Line Numbers
  1.  <style type="text/css">
  2.  
Nov 24 '07 #2

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

Similar topics

2
6361
by: matthewmacchia | last post by:
I believe this is a Firefox bug but I was hoping someone found a workaround. I have implemented drag and drop functionality, but if I try to drag an element from a div that happens to have a div with an "overflow: auto" it seems to lose the onmouseover event for my target. Anyone come across this issue and found a resolution? Please...
3
5157
by: David Hayes | last post by:
I've made tooltips work in Firefox*, but tooltip doesn't appear at the specified location until the SECOND time that the user passes the mouse over the location with the mouseover event. What I want is for the user to be able to put the mouse over text that gives a year (e.g., "(1932)", "(1946)" and "(1923)") and see the tooltip to the right...
6
6855
by: michaelzap | last post by:
I can't seem to remove some extra margin/padding from my design on this site: http://www.kyowa-usa.com/ IE displays it properly (no space between the menus and other elements and the outer border), but in Firefox I always end up with some space. I have tried several box model fixes (to no avail), and I'm no longer sure that's what's...
87
9497
by: expertware | last post by:
Dear friends, My name is Pamela, I know little about CSS, but I would like to ask a question I have an image on a web page within a css layer: <DIV ID=MyLayer STYLE = "position: absolute;top:68px; left:563px; width:640px;height:480px;"> <IMG src="ReportImageBox_12.54.52.png" width=640 height=480></IMG>
14
2300
by: expertware | last post by:
Ok! to avoid confusion I will start a new argument. Thanks!! FIREFOX 1.0.7 AND IE6 viewed through DATATIME: a summary REPORT =============================================================== by Pamela Datatime Team -----------------
45
4668
by: Pat | last post by:
its seems asp.net validation doesn't fire when using FireFox? Tested a page and it doesn't fire. It seems the javascript doesn't fire Any ideas?
12
2031
by: Brad | last post by:
Does anyone have any other solutions to the Firefox rendering problems with ASP.NET? I've tried the <browsercaps> web.config trick. It didn't work. Am I overlooking something else? Thanks!
9
1984
by: =?Utf-8?B?Sm9obiBCYWlsZXk=?= | last post by:
I have a ASP .Net page that allows moving around items on the page through javascript. This page works fine in IE. In FireFox however, I have found that if the page is using XHTML 1.0 Transitional as the doctype, you cannot set the style.left and style.top properties of image or div tags. If you remove the doctype from the page it works...
7
2527
by: Carlos Mendonça | last post by:
Has anyone managed to get ClickOnce to work with Firefox? It seems to me that it still has the same issues VS 2K5 had. I appreciate any comments or tips.
3
2413
by: SAL | last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps section of either web.config or machine.config but it didn't work. It seems that most pages in my webapp are okay but a couple of the Firefox is munging up. So, on my information page there is a gridview in the content section of the page. The masterpage contains...
0
7470
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7659
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7428
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5975
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5334
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4949
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3455
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1019
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
709
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.