By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,466 Members | 1,167 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,466 IT Pros & Developers. It's quick & easy.

Javascript / CSS Question

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
* 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 discussion thread is closed

Replies have been disabled for this discussion.