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?
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
"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
How to Ask Questions the Smart Way
(not affiliated with this site, but well worth reading)
XHTML 1.0 transitional is transitioning from deprecated HTML to deprecated XHTML.
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).
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)