In the following code, the background image does not appear in both IE7 and FF2.
After I removed the DocType, the background image appeared in IE7 but not FF2.
In IE7, it does not matter whether the DocType is xhtml 1 or HTML 4. As long as there is DocType, the background image disappears.
I googled the problem, which appeared to have happened to other people, but there is no clear answer. And the Forum's Search function is under maintenance.
Any input is appreciated.
Seaport
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<html>
<head>
<title>Sort Table</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body style="background-image: url(images\theme1_bg.jpg)">
<p>fdasf dasfksald;f jksdaf; jsadl;f</p>
</body>
</html>
After I removed the DocType, the background image appeared in IE7 but not FF2.
In IE7, it does not matter whether the DocType is xhtml 1 or HTML 4. As long as there is DocType, the background image disappears.
I googled the problem, which appeared to have happened to other people, but there is no clear answer. And the Forum's Search function is under maintenance.
Any input is appreciated.
Seaport