Hey, The web page I built works fine on FF but not in IE7. I don't receive any error message and don't understand what is the problem. Here's the code of the html page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <head> <script type="text/javascript" language="JavaScript1.2" src="/script/stmenu.js"</script> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>blah blah blah</title> <link rel="stylesheet" href="mainstyle.css" type="text/css"> </head> <body> tnx ahead, Yoda
If that's everything, you're missing the <html></html> and <body></body> tags. But since I'm presuming that's not the case, here's what you should do. Directly underneath the <head> tag, place your document title. Then place your META tags (starting with the content encoding). After that, place your LINK tags (starting with your stylesheet). Finally, place your script tag(s), and close the HEAD section. Now, looking at your code, the browser is expecting the Web page to be in the same folder as your stylesheet. If it's not, put a forward slash before the file name, and if necessary, put the folder name, followed by another forward slash, after that. So mainstyle.css would either become /mainstyle.css or /styles/mainstyle.css (assuming the folder is called "styles" of course).