473,395 Members | 1,653 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,395 software developers and data experts.

DIV jumping intermittently in Firefox

AutumnsDecay
170 100+
Hey there.

I'm redesigning my website, and before I get too far, I want the layout to work correctly.

In IE and Opera, the issue is non existant, however in Firefox, it's annoying.

www.autumnsolutions.org

As you can see, in Firefox, the middle 'Content' div will jump around on the page everytime the page is refreshed. Sometimes it appears correctly, and then once refreshed, it appears broken.

Here is my current code:

[html]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.


theImages[0] = 'images/headerplus.jpg'
theImages[1] = 'images/headerplus1.jpg'
theImages[2] = 'images/headerplus2.jpg'
theImages[3] = 'images/headerplus3.jpg'
theImages[4] = 'images/headerplus4.jpg'

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}

// End -->
</script>

<style>

.main
{
background: #FFFFFF;
width: 965px;
padding:5px;
}

.header
{
width:961px;
background:#FFFFFF;
border: 1px solid #eaeaea;
margin-bottom:5px;
}

.navigation
{
background: url('images/menuback.jpg');
width: 196px;
border: 1px solid #eaeaea;
float: left;
}

.leftbar
{
background:#FFFFFF;
width:196px;
float: left;
}

.rightbar
{
width:196px;
background: #FFFFFF;
float: right;
}

.latest
{
background: #FFFFFF;
width: 196px;
border: 1px solid #eaeaea;
float: left;
}

.bottom
{
width:961px;
background: #FFFFFF;
height: 25px;
clear: both;
}

.contentholder
{
width:540px;
background:#FFFFFF;
display:table;
float: left;
display:table;
padding-left:5px;
}

.content
{
background: #FFFFFF;
width: 535px;
border: 1px solid #eaeaea;
margin-left: 4px;
margin-right: 4px;
text-align:left;
padding-left:5px;
padding-right:5px;
padding-top:3px;
float: left;}

.advertise
{
background: url('images/menuback.jpg');
width: 196px;
border: 1px solid #eaeaea;
float: left;
}

.promos
{
background: #FFFFFF;
width: 196px;
border: 1px solid #eaeaea;
float: left;
}

.style5 {
color: #000000;
font-family: Arial, Helvetica, sans-serif;
}
.style6 {font-family: Arial, Helvetica, sans-serif}
.style11 {font-size: 14px}
.style13 {font-family: Arial, Helvetica, sans-serif; font-size: xx-small; }
.style15 {font-size: x-small}
.style16 {font-family: Arial, Helvetica, sans-serif; font-size: x-small; }
.style17 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
a {
font-family: Arial, Helvetica, sans-serif;
color: #000000;
}
a:visited {
color: #000000;
}
a:hover {
color: #000000;
}
a:active {
color: #000000;
}
.style18 {font-size: 12px}
-->
</style>

</head>

<body top-margin='0' bottom-margin='0' bgcolor="#eeefef">
<center>
<div class="main">
<div class="header">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
showImage();
// End -->
</script>
</div>
<div class="contentholder">
<div class="leftbar">
<div class="navigation">
<?php include ('menu.html') ?> &nbsp;
</div>
<div class="latest">
&nbsp;
</div>
</div>
<div class="rightbar">
<div class="promos">
&nbsp;
</div>
<div class="advertise">
&nbsp;
</div>
</div>
<div class="content">
<span class="style17">
Welcome!

Thanks for visiting the new Autumn Designs. We've completely redone the look of the site, aswell as added an entire new section of premade, quality, layouts.
<br /><Br />
Always make sure you check out our current promotions. We value you as a customer and love to give back to you. This months promotion is for our Gold and Premium packages. With the purchase of either a gold or premium package, you will receive an iPod shuffle as a complimentory thank-you from us.
<br /><Br />
But even with all the new features of Autumn Designs, let's not forget the philosophy that we were founded on:
<br /><br />
"We believe that every business, no matter what size or budget, should have a website that's fresh and is able to get the attention of it's customers, while delivering information about the products and services the company has to offer.
<br /><br />
This is also true for individuals who just want their own website to capture the attention of friends and family. Most commonly, websites created for individuals are to announce an upcoming wedding, birthday, celebration, etc...
<br /><br />
All of our work is completely custom done. You give us the ideas and we'll turn your dream into a virtual reality!"
<br /><br />
As always, thank you for chosing Autumn Designs.
</span>
</div>
<div class="bottom">
&nbsp;
</div>
</div>
</div>
</body>
</html>

[/html]

I'm not sure why this is happening. I've never had a problem with it before.

Any help is greatly appreciated.

Thanks!
Apr 12 '08 #1
2 2024
AutumnsDecay
170 100+
Well, I played around with it, changing a few elements here and there.

Seems the problem was using the display:table; attribute. For some reason, it didn't like that one too much.
Apr 13 '08 #2
drhowarddrfine
7,435 Expert 4TB
display:table does not work in IE. It does work in Firefox. So IE is confusing you.

In addition, you show a doctype in your posted markup, but there is no doctype on the web. Without one, you will never get IE to attempt to perform like modern browsers like Firefox.
Apr 13 '08 #3

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

Similar topics

3
by: jalkadir | last post by:
By jump I mean ending unexpectedly. The program below, like the jumping beens, has an unusual behaviour. When the noted lines are not present the program terminates disregarding the rest of the...
0
by: Mike Treadway | last post by:
Here's a posting from someone else that describes my problem. The issue is happening on two Windows 2000 machines that have Veritas installed. That's the only obvious common thing I can see between...
2
by: uni | last post by:
Hi, Why the IIS is down intermittently, and when I restart it,there is an error showing "the address already in use". Are they related and Why is that? This is the live IIS server 5.0 with...
2
by: aabid | last post by:
We have a dotnet 2.0 application with sql server 2005 at the backend. Since yesterday morning we get the above message intermittently. At one moment I am connected and the page loads perfectly...
6
by: laredotornado | last post by:
Hi, On the latest version of PC Firefox, I am noticing some strange behavior. If you look at this page http://remanresource.com/home.php and click on the "View Demo" link towards the...
3
by: töff | last post by:
On my site http://www.sjcga.com I have a javascript-generated navigation menu in the top right corner. The menu works great in IE and Opera ... but in FireFox, on the 1st click, the menu jumps...
19
by: Steve | last post by:
Hi there, I'm having a problem with a webpage where hoving over the top navigation links causes my footer to jump up to the centre of the page! It only happens with IE7, and works fine with the...
9
SamKL
by: SamKL | last post by:
Here's the page in question: http://www.primusint.info/test/index.php I've tested this in Mozilla, IE6, and IE7. In both IE6/7 it appears to be fine. No random jumping around or anything. ...
1
by: ranpelt | last post by:
Hi folks, After getting my page (http://theamazing.onlinewebshop.net/spotlight/) to work in Firefox and Safari. I thought I would try to get in working in IE. My attempt is here:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.