www.webdeveloper.com
Results 1 to 5 of 5

Thread: Trouble with <!DOCTYPE and input backgrounds

  1. #1
    Join Date
    Jan 2007
    Posts
    164

    Trouble with <!DOCTYPE and input backgrounds

    Hello.

    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
    Location
    Jerryville, Tejas
    Posts
    11,715
    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
    Location
    Ankh-Morpork
    Posts
    19,174
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  4. #4
    Join Date
    Mar 2005
    Location
    Sydney, Australia
    Posts
    7,974
    XHTML 1.0 transitional is transitioning from deprecated HTML to deprecated XHTML.
    Stephen

  5. #5
    Join Date
    May 2005
    Posts
    2,040
    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



Recent Articles