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

Possible Firefox CSS content problem - Refresh fixes it

Ladies and Gentleman,

I have been having this problem that has been driving me insane. I have a website that when viewed in Firefox first, the content in the body area is pushed down. Then when you click refresh, the content on that page is fine. I believe this could possibily a firefox issue. When I load the website in IE6 or IE7 the content is just fine. Any page you visit with IEXporer displays correctly where as if you go to the start page within firefox, you have to click refresh to display correct. If you click on abother link within the website, you again have to click refresh for the page to display correctly. Every page on the site acts the same in Firefox.

I would like to know what might be causing this problem. Here is the source to my CSS. My website is as follows. http://www.securemidwest.com

form {
margin:0px;
padding:0px;
}

ul {margin:0; padding:0; list-style:none;line-height:25px;}
ul li {
background:url(images/marker.gif) center left no-repeat;padding:0 0 0 17px ;
}

body{
margin:0px;
padding:0px;
text-align:center;
background-color:#E7E7E7;
}

div,textarea{
font-size:11px;
font-family:Tahoma;
color:#444444;
line-height:14px;
text-align:left;
margin:0 auto;
}
.m { color:#636363}

a:hover{ text-decoration:none}

.wrap{
margin:0 auto;
padding:0;
width:704px;
height:777px;
text-align:center;
background:URL(images/tall_y.gif) repeat-y;
display:table;
}

.form input{
width:145px;
height:17px;
padding:1 0 0 8px;
color:#9C9C9C;
font-size:10px;
line-height:12px;
vertical-align:middle;
}
.form{
width:234px;
height:87px;
background:URL(images/back_form.gif) no-repeat;
}

.header{
margin:0 auto;
padding:0;
width:704px;
height:263px;
text-align:left;
background:URL(images/header.jpg) no-repeat;
}


.content{
margin:0 auto;
padding:0;
width:704px;
height:413px;
text-align:left;
display:table;
background:URL(images/back_cont.jpg) no-repeat top;
}
.footer a{ color:#2CA7F3; font-size:10px; text-decoration:none}
.footer a:hover{ text-decoration:underline}
.footer_font{
color:#627074;
font-size:10px;
}
.footer_privacy a, .footer_privacy{
color:#8F9B9E;
font-size:10px;
text-decoration:none;
}
a { color:#2CA7F3}
.block a{color:#33576F;}
.block{
color:#33576F;
padding:21 15 16 28px
}
.footer_privacy a:hover{ text-decoration:underline}
.footer{
margin:0 auto;
padding:0;
width:704px;
height:101px;
text-align:center;
background:URL(images/footer.gif) no-repeat bottom;
}
.input_image{
margin-left:7px;
vertical-align:middle;
}
.input1{
width:146px;
height:22px;
background-color:#FFFFFF;
font-size:11px;
font-family:Tahoma;
color:#444444;
line-height:12px;
padding:3 0 0 4px;
vertical-align:middle;
margin-left:10px;
}
.input2{
width:117px;height:20px;
background-color:#FFFFFF;
font-size:11px;
font-family:Tahoma;
color:#33576F;
line-height:12px;
padding:3 0 0 4px;
border-color:#B0B0B0;
border-width:1px;
border-style:solid;
vertical-align:middle;
}
.textarea{
width:127px;height:79px;
background-color:#FFFFFF;
font-size:11px;
font-family:Tahoma;
color:#33576F;
line-height:12px;
padding:3 0 0 4px;
border-color:#B0B0B0;
border-width:1px;
border-style:solid;
overflow:hidden;
}
Feb 28 '07 #1
3 5591
drhowarddrfine
7,435 Expert 4TB
The problem is IE. Never, ever use IE as a guide. It is old, buggy and non-standards compliant. Always use any other browser as a reference as to whether your code is working.

First, validate and fix your css errors. You must always specify units when they are anything but zero.

Second, IE has a bug where is expands divs to contain floated elements. This is incorrect behavior.

Third, your doctype is incomplete and IE is in 'quirks mode' which is like 1998 all over again. Change it to this one:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
Then revalidate your html and see what, if any, errors occur.

Once you fix all that, get it working in Firefox and then we can adjust for IEs quirks and bugs, if necessary.

You may find it helpful to read the stickies at the top of this board.

Feel free to ask for any help along those lines here.
Feb 28 '07 #2
Okay, I changed the DOCTYPE and then validated/corrected the CSS errors. As soon as I put the strict doctype in, everything on the left hand page display is not aligned.

The problem with FF still not displaying correctly is still occurring. A simple refresh fixes it or if I just click the navigation link again, the page displays correctly. Any suggestions would be great!

By the way, now the alignment I mentioned that is "off" on the left hand is off when viewed in IE as well.
May 2 '07 #3
drhowarddrfine
7,435 Expert 4TB
Ignore the PM I just sent you about opening a new thread. This one is fine but do read the contents. Your html still doesn't validate.
May 2 '07 #4

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

Similar topics

45
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?
5
by: Harlin Seritt | last post by:
I have this Python CGI script running: print 'Content-type: text/plain\n' location = 'http://server1.com' page = ''' <html> <head>
21
by: Ben | last post by:
Hello I have frames set up in an asp.net application and need one frame to refresh another. Seeing as events need to be registered at the time the page is sent from the server, I was wondering...
0
by: KPants | last post by:
I'm currently attempting to fix an issue that's been occuring with the design template I made for my Myspace... At first, it looked perfectly fine in Firefox, but in IE, everything was off the the...
11
by: Benny123 | last post by:
Im very new to the who css lark so am struggling quite a bit. ive managed to build a basic div centred box with css embedded in my html. It looks fine in IE but loses all size in firefox. Any...
7
by: amishguy | last post by:
Hello, I am having an issue with a site I'm creating right now. I have had this issue before and I would like to figure out what the solution is instead of using workarounds as I have in the...
4
by: tcnjdeluca | last post by:
Hello I am sorry if this is a really novice question, but I am virtually clueless when it comes to Javascript. I have a page that is running the "leightbox" script. I have modified the script as...
1
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being...
29
Frinavale
by: Frinavale | last post by:
I have 2 FireFox (version 2) browser windows opened. One is the child of the other. When the user is finished with the child window, a method in the parent window is called to refresh a...
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: 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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.