Javascript / CSS Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mtek

    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
  • James Black

    #2
    Re: Javascript / CSS Question

    On Apr 11, 10:26 pm, Mtek <m...@mtekusa.c omwrote:
    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.

    Comment

    • Mtek

      #3
      Re: Javascript / CSS Question

      On Apr 11, 10:09 pm, James Black <planiturth...@ gmail.comwrote:
      On Apr 11, 10:26 pm, Mtek <m...@mtekusa.c omwrote:
      >
      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......



      Comment

      • Bjoern Hoehrmann

        #4
        Re: Javascript / CSS Question

        * Mtek wrote in comp.lang.javas cript:
        >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:bjoern@h oehrmann.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/

        Comment

        Working...