Results 1 to 5 of 5

Thread: Trouble with <!DOCTYPE and input backgrounds

  1. #1
    Join Date
    Jan 2007

    Trouble with <!DOCTYPE and input backgrounds


    I seem to be in a bind if anyone can help. I have a page that uses alot off css, which requiers this <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN"> in order to have it format correctly. the problem is with that i cannot add a background image to an <input type=text field>. if i remove the <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN"> type all tables loose the properformat including all tbody and td, tr which even if i re-write the css for it still will not format properly. is there any kind of work around to get a text input filed background to work?

  2. #2
    Join Date
    Nov 2003
    Jerryville, Tejas
    Is there even such thing as HTML 1.0 Transitional? What the heck would a 1.0 be transitioning from?
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

  3. #3
    Join Date
    Aug 2004
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  4. #4
    Join Date
    Mar 2005
    Sydney, Australia
    XHTML 1.0 transitional is transitioning from deprecated HTML to deprecated XHTML.

  5. #5
    Join Date
    May 2005
    You have to remember that a doctype is, essentially, the set of rules you are telling browsers you are using to create your markup. You cannot/should not change the rules mid-stream. You never try and make the doctype fit the markup but the markup should always match the doctype.

    So, if you can't get your markup to work with a certain doctype, fix the markup and not the doctype. All new pages should always use 'strict'. There is no need for transitional (for newly marked up pages).

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center