473,394 Members | 1,845 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.

Javascript / CSS Question

Hi,

I just implemented some popup balloons that I got from this site:
The first line in the HTML file is: <!DOCTYPE html PUBLIC '-//W3C//
DTD XHTML 1.0 Strict//EN'>
For some reason it screws up my centering and all sorts of stuff, my
table borders, styles, etc.

Can anyone explain this to me?

Thanks!

John
Jun 27 '08 #1
3 898
On Apr 11, 10:26 pm, Mtek <m...@mtekusa.comwrote:
Hi,

I just implemented some popup balloons that I got from this site:

The first line in the HTML file is: <!DOCTYPE html PUBLIC '-//W3C//
DTD XHTML 1.0 Strict//EN'>

For some reason it screws up my centering and all sorts of stuff, my
table borders, styles, etc.

Can anyone explain this to me?

Thanks!

John

I am going to guess that you don't know XHTML, which is largely HTML4
written as XML. You may find this a helpful starting point,
http://personalweb.about.com/od/basi...a/409xhtml.htm, but,
largely, you may want to just work with HTML 4, and get very
comfortable with that technology first.

It is hard to answer better, for me, since you didn't mention anything
about your browser or show any examples of your difficulties.

Good luck.
Jun 27 '08 #2
On Apr 11, 10:09*pm, James Black <planiturth...@gmail.comwrote:
On Apr 11, 10:26 pm, Mtek <m...@mtekusa.comwrote:
Hi,
I just implemented some popup balloons that I got from this site:
The first line in the HTML file is: *<!DOCTYPE html PUBLIC '-//W3C//
DTD XHTML 1.0 Strict//EN'>
For some reason it screws up my centering and all sorts of stuff, my
table borders, styles, etc.
Can anyone explain this to me?
Thanks!
John

I am going to guess that you don't know XHTML, which is largely HTML4
written as XML. *You may find this a helpful starting point,http://personalweb.about.com/od/basi...a/409xhtml.htm, but,
largely, you may want to just work with HTML 4, and get very
comfortable with that technology first.

It is hard to answer better, for me, since you didn't mention anything
about your browser or show any examples of your difficulties.

Good luck.
Sorry, I am using IE 7, and, it works fine in Firefox, but not in IE.
As soon as I remove that line, everything aligns properly, but I lose
the effect of CSS and the mouseover balloons......

Jun 27 '08 #3
* Mtek wrote in comp.lang.javascript:
>I just implemented some popup balloons that I got from this site:

The first line in the HTML file is: <!DOCTYPE html PUBLIC '-//W3C//
DTD XHTML 1.0 Strict//EN'>

For some reason it screws up my centering and all sorts of stuff, my
table borders, styles, etc.
Have a look at http://en.wikipedia.org/wiki/Quirks_mode and the links
offered in the External Links section at the bottom. The short answer
is that some browsers process documents differently depending on lines
like the one you cite.
--
Björn Höhrmann · mailto:bj****@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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:
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
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...
0
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...

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.