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

Some Elements on page are not Held in Center of Page (FireFox).

Hello, I am still learning code, and I am having trouble with some elements on this page (only in FireFox).

http://adgraphics.us/ChannelLetters/ChannelLetters.html

They are way outside of center. I did not change anything on the page, it just started happening. It also just started happening to another page. Can anyone please show me the problem with the code?



Thank you, BeachKing
Aug 26 '11 #1
12 1687
drhowarddrfine
7,435 Expert 4TB
I'm assuming you mean it works in IE but it is IE that is the problem. You are missing a doctype and IE is in quirks mode. Never, ever use IE as a reference for how things work. It's the worst browser on the planet.
Aug 28 '11 #2
Thanks for your reply. The page works fine in IE and Safari, but not FireFoex. Any suggestions please? See link for your review.

http://adgraphics.us/ChannelLetters/ChannelLetters.html

Thank you
Aug 29 '11 #3
drhowarddrfine
7,435 Expert 4TB
I already told you the problem. You don't have a doctype. It doesn't matter how it looks in IE till it's set in the modern browsers. Put this as your first line:
<!DOCTYPE HTML>

That will screw up IE cause it's not a modern browser but help everything else, but IEs multitude of problems are well documented.
Aug 30 '11 #4
Thanks again for your help. I followed your recommendation regarding the doctype, but it had no effect on this page.

http://adgraphics.us/ChannelLetters/ChannelLetters.html

As a matter of fact, the doctype is missing on every page on this website, and all other pages look fine in all browsers. I tried adding many different doctype codes, but none of them resolved this particular problem in Firefox browser. FYI: This page looks fine in IE and Safari, the problem is in Firefox browser.

Might you have another suggestion for this issue?

Thank you again.
Aug 30 '11 #5
drhowarddrfine
7,435 Expert 4TB
Again, how it looks in IE is of no concern at the beginning. It's like using a broken calculator to check your math. Ignore it at first.

A doctype is required of all new web pages. The link you now show is using the transitional doctype. New web pages have no need for transitional. Either use the doctype I showed above, or use this one:
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2.    "http://www.w3.org/TR/html4/strict.dtd">
The doctype is the very first thing you put on a web page when you begin writing the markup. Then you check it in a modern browser (never IE at first). If you didn't do either first, you're in for a world of problems.

Also, validate your html and css.

I also see you are using XHTML end tags for the meta, script and link elements, the />, but you are declaring HTML and serving it as HTML. Thus some of the errors. Remove the slash as shown by the validator and correct any other remaining errors.
Aug 31 '11 #6
Hello, I am self taught (still learning code), so I do not understand most of what you were suggesting. Never-the-less, I appreciate your help. After praying to God, He finally showed me what the problem was (I wish I would've asked Him sooner). One of the cells was corrupt. So, after I replaced it, the page viewed okay. Thanks again, BeachKing
Aug 31 '11 #7
drhowarddrfine
7,435 Expert 4TB
Well, no, that was not the problem. Even though you got this instance to work, you will continue to have problems until you put the doctype in.
Sep 1 '11 #8
Thank you for the reply. I do understand that the doctype needs to be there, I am just not clear on which one I need. Any suggestions would be appreciated. Please speak in beginner (layman) terms if you are gracious to explain it.
Sep 1 '11 #9
drhowarddrfine
7,435 Expert 4TB
All web pages need the doctype on the very first line.
Sep 1 '11 #10
Yes, I have already acknowledged that the doctype code needs to be there. What I don't know is . . . what specific doctype code does my web page need please? (Are you thoroughly reading my replies?) Thank you.
Sep 1 '11 #11
drhowarddrfine
7,435 Expert 4TB
I already talked of this. However, I looked more closely at your markup and noticed you are using deprecated code. That is, you are using HTML which is no longer recommended to be used, such as any of the attributes in the tags like 'align' and 'valign'. Those will be flagged as errors by the validator so you need to use the 'transitional' doctype while you "transition" to eliminating those things (and instead use CSS for alignment).
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2.    "http://www.w3.org/TR/html4/loose.dtd">
Sep 1 '11 #12
Thank you again for all your help. It is much appreciated. I have already added the code and will continue to study the subject.
Sep 1 '11 #13

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

Similar topics

4
by: Ed Jay | last post by:
I generate a DHTML page (a medical report) with dynamically generated text based on user input (answers to questions). The page length changes dynamically. I desire that when the page is printed...
1
by: tslettebo | last post by:
Hi all. I've read Michael Kay's "XSLT" book, and used XSLT successfully as an HTML template system at our company (using basically the "fill-in-the-blanks" pattern of XSLT use: A template...
1
by: MORALBAROMETER | last post by:
Hi all, I want to update MULTIPLE elements of an HTML page using Ajax. for this reason i my response is an xml document. I want to use XSL at the client side to update these elements. How can i...
9
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...
1
by: movieking81 | last post by:
Does anyone know how to use a form button to popup the page setup dialog in Firefox? I can do it fine with a couple of scripts in IE, but I can't manage Firefox. I know Firefox is tighter on...
8
by: coachdave | last post by:
Hi, all! Need to transfer some data - 20 characters or less, from a first asp page that is called by a user submitting a form on an html page. What downloads from this first asp page is affected by...
1
by: sudip2008 | last post by:
When using the Calendar Popup in a content page of a masterpage the strForName is always set to aspnetForm This breaks this line from working properly window.opener.document.forms...... How can...
0
by: jbonifacejr | last post by:
Hello everyone. Very sorry if I am posting in the wrong place. I am writing a test harnes that will be required to interact with elements on a web page, such as inserting text in a text box. At...
6
by: FrEaKmAn | last post by:
Hello I'm wondering if I can align some div to the center of the page (horizontal and vertical). We are talking about the option to scroll up/down and that div still stays at the center. I know...
3
by: ton | last post by:
Hi, I'm using AJAXPRO this works very well. What I want to do is to add new page elements at my web site without using a postback. And I do not mean listitems but a complete dialog. Let me...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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...

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.