473,698 Members | 2,833 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

14 New Member
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 1707
drhowarddrfine
7,435 Recognized Expert Expert
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
beachking
14 New Member
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 Recognized Expert Expert
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
beachking
14 New Member
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 Recognized Expert Expert
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
beachking
14 New Member
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 Recognized Expert Expert
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
beachking
14 New Member
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 Recognized Expert Expert
All web pages need the doctype on the very first line.
Sep 1 '11 #10

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

Similar topics

4
3644
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 and reaches a specific length, it terminates printing that page, prints a page number, and then begins to print the next page using the same header and format as the previous page. The page uses no tables or paragraph elements, only CSS. IOW, I...
1
1327
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 matching the root node, containing the HTML page, with lots of <xsl:value-of.../>, etc.). However, I've recently got a task that got me stumped, and I don't know if I'm missing something obvious, but quite frankly, I don't know where in the sea of...
1
3240
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 achieve this? I will be very greatefull for any help. Have a look below ===================================================== Response from Server using HttpRequest Object =====================================================
9
1989
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 just fine, although I would rather not do this. You can work around this by setting the cssText...
1
2186
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 ActiveX stuff, but is there any way? I tried to search through the previous posts, but alas no luck. Thanks
8
2819
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 what the user submits. Usually it includes another form which, when the user fills out and submits, calls a second asp page and this, after putting the data through a regex, stores it in a cgi-bin file. This all works: BUT I need to get some data from...
1
8472
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 I fix this and display the date into textbox after selecting the date from Calendar.aspx? This Very Urgent .......................... If any body help me out I have given the following Code ******************************
0
876
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 some step in the test I will have to identify the text box using properties such as the name or id (which can both be set as attributes) or by the innerhtml or outerhtml of the element if the other two "attributes"are not set. What generally...
6
4952
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 that this is possible with JS, but what about CSS? Thanks in advance
3
2408
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 give an example: in my application which will contain of several pages I'll use a filter/query mechanism, so if the user wants to add a new filter or modify
0
8683
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8611
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8904
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8876
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7741
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6531
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4372
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.