Javascript / CSS Question

M

Mtek

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
 
J

James Black

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/basichtml/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.
 
M

Mtek

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/basichtml/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......
 
B

Bjoern Hoehrmann

* 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top