I am trying to improve an existing website for a non-profit (free job) that has used tables for everything in it and behaves different on different browsers.
My goal is to use CSS for formatting and use to DIV elements to position every section on the page. I am new to CSS and use of DIV element and the problem I am facing is: how to use asp pages within div elements?
Current website has extensively used ASP pages for pretty much everything and they are embedded in tables.
I thought I could just use include directive as used in current websites and things will work fine. But it ain't so...ASP pages are not displaying.
For the life of me I cannot figure out how to use asp pages within div elements. Here is an example (I would not bother you to include CSS file for now). I tried to include asp file with an iframe, but it only worked in IE and not in Firefox...weird. Keep in mind I am doing this all on my local machine.
I do not have access to the server yet. This asp file (test.asp) could contain reference to other asp ex: connection.asp, which is used to connect to the DBs..
Can some please help? I cannot re-write asp pages.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>TESTING THE SITE</title>
<title>TESTING</title>
<!-- index.html style sheeet -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" /
<body>
<div id="outer">
<div id="top-banner">
<div id="logo"> <a href=""><img src="images/Logo.png" alt="logo"/></a> </div>
</div>
<div id="content">
<!--#include file="test.asp"-->
</div>
</div>
</body>
</html>
My goal is to use CSS for formatting and use to DIV elements to position every section on the page. I am new to CSS and use of DIV element and the problem I am facing is: how to use asp pages within div elements?
Current website has extensively used ASP pages for pretty much everything and they are embedded in tables.
I thought I could just use include directive as used in current websites and things will work fine. But it ain't so...ASP pages are not displaying.
For the life of me I cannot figure out how to use asp pages within div elements. Here is an example (I would not bother you to include CSS file for now). I tried to include asp file with an iframe, but it only worked in IE and not in Firefox...weird. Keep in mind I am doing this all on my local machine.
I do not have access to the server yet. This asp file (test.asp) could contain reference to other asp ex: connection.asp, which is used to connect to the DBs..
Can some please help? I cannot re-write asp pages.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>TESTING THE SITE</title>
<title>TESTING</title>
<!-- index.html style sheeet -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" /
<body>
<div id="outer">
<div id="top-banner">
<div id="logo"> <a href=""><img src="images/Logo.png" alt="logo"/></a> </div>
</div>
<div id="content">
<!--#include file="test.asp"-->
</div>
</div>
</body>
</html>