FlatTax
20 May 2009, 03:53 PM
Hey folks:
I've integrated some ASP code into an HTML file for my page. But unfortunatley, the end result is a jumbled mess. I think its a simple solution to a simple problem, but I just cant see it. Any help?
<%@ Master Language="VB" AutoEventWireup="true" ClassName="SubTemplate" Inherits="CSD.Foundation.UserInterface.TemplateMaster" %>
<%@ Register Src="~/Controls/NewsletterBox.ascx" TagPrefix="csd" TagName="NewsletterBox" %>
<%@ Register Src="~/Controls/ShoppingCartBox.ascx" TagPrefix="csd" TagName="ShoppingCartBox" %>
<%@ Register Src="~/Controls/UserMenu.ascx" TagPrefix="csd" TagName="UserMenu" %>
<%@ Register Src="~/Controls/LoginBox.ascx" TagPrefix="csd" TagName="LoginBox" %>
<%@ Register Src="~/Controls/Logo.ascx" TagPrefix="csd" TagName="Logo" %>
<%@ Import Namespace="CSD.Foundation" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>The Website Toolkit</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body runat="server">
<form id="Main" runat="server">
<div id="header">
<csd:Logo runat="server" />
</div>
<div id="content">
<div id="menu">
<!-- Main Menu goes here -->
<asp:Menu ID="mnuHeader" runat="server"
SkinID="HeaderMenu"
DataSourceID="SiteMapDataSource1"
Orientation="Horizontal"
MaximumDynamicDisplayLevels="0"
SkipLinkText=""
StaticDisplayLevels="1" />
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" StartingNodeOffset="0" ShowStartingNode="false" />
</div>
<div id="colOne">
<div id="breadcrumb">
<asp:SiteMapPath ID="SiteMapPath1" runat="server" PathSeparatorStyle-CssClass="separator" PathSeparator=" " />
</div>
<asp:ContentPlaceHolder ID="MainContentHolder" runat="server">
<!-- Content for each page of the site is dynamically input here -->
</asp:ContentPlaceHolder>
</div>
<div id="colTwo">
<!-- Loginbox goes here -->
<csd:LoginBox ID="LoginBox1" runat="Server" />
<!-- Left User Menu goes here -->
<csd:UserMenu ID="UserMenu1" runat="server" Visible="True" />
<!-- ShoppingCartBox goes here -->
<csd:ShoppingCartBox ID="ShoppingCartBox1" runat="server" />
<!-- NewsletterBox goes here -->
<csd:NewsletterBox ID="NewsletterBox1" runat="server" />
</div>
<div style="clear: both;"> </div>
</div>
<div id="footer">
<div id="footer1">
<!-- Footer Menu goes here -->
<asp:Menu ID="mnuFooter" runat="server"
style="margin-left:auto; margin-right:auto;"
CssClass="footermenulink"
DataSourceID="SiteMapDataSource1"
Orientation="Horizontal"
MaximumDynamicDisplayLevels="0"
SkipLinkText=""
StaticDisplayLevels="1"
ShowStartingNode="false" />
</div>
<p id="legal">©2009 All Rights Reserved. | Designed by <a href="http://www.freecsstemplates.org/" target="_blank">Free CSS Templates</a></p>
<p>Powered by <a href="" target="_blank"> </a> <br />
</div>
</form>
</body>
</html>
and the css
body {
margin: 0;
padding: 0;
background: #FFFFFF url(images/img1.gif) repeat-x;
font: normal small "Trebuchet MS", Arial, Helvetica, sans-serif;
color: #6E697D;
}
form, h1, h2, h3 {
margin: 0;
padding: 0 0 15px 0;
text-transform: lowercase;
color: #7C6DA6;
}
h3
{
padding-top: 10px;
}
blockquote {
font-style: italic;
}
a {
text-decoration: none;
color: #4E3A85;
}
a:hover {
text-decoration: underline;
}
/* Header */
#header {
width: 905px;
height: 80px;
margin: 0 auto;
}
#header h1 {
float: left;
padding: 30px 0 0 13px;
letter-spacing: -4px;
font-size: 3em;
}
#header h2 {
float: right;
padding: 52px 13px 0 0;
font-size: 1.2em;
vertical-align: bottom;
}
#header a {
text-decoration: none;
color: #7C6DA6;
}
/* Menu */
#menu {
/* width: 520px; */
width: 894px;
height: 50px;
padding: 13px 13px 0 13px;
}
#menu ul {
margin: 0;
padding: 0;
list-style: none;
}
#menu li {
display: inline;
}
#menu a {
display: block;
float: left;
width: 125px;
height: 40px;
padding: 10px 0 0 0;
background: url(images/img5.gif) no-repeat;
text-align: center;
text-transform: lowercase;
text-decoration: none;
letter-spacing: -2px;
font-size: 1.8em;
color: #FFFFFF;
}
#menu .first a {
background: none;
}
#menu a:hover {
color: #7C6DA6;
}
/* Content */
#content {
width: 955px;
margin: 0 auto;
padding: 0;
background: #FFFFFF url(images/img2.gif) no-repeat;
}
/* Column One */
#breadcrumb {
margin: 10px 0;
}
#colOne {
float: left;
width: 600px;
padding: 20px 0 0 30px;
margin: 0 auto;
}
#colOne a {
border-bottom: 1px dotted #7C6DA6;
}
#colOne a:hover {
border: none;
}
#colOne .post {
margin-bottom: 30px;
border-bottom: 1px solid #E6E2F1;
}
#colOne .title {
letter-spacing: -2px;
font-size: 1.6em;
}
#colOne .posted {
font-size: x-small;
}
#colOne .meta {
height: 25px;
padding: 10px 0 0 0;
background: url(images/img7.gif) no-repeat right bottom;
}
#colOne .meta p {
margin: 0;
padding: 0;
font-size: x-small;
}
/* Column Two */
#colTwo {
float: right;
width: 180px;
padding: 20px 60px 0 0;
}
#textfield1 {
width: 145px;
padding: 2px 0 2px 15px;
background: #F3F0F9 url(images/img6.gif) no-repeat left center;
border: 1px solid #A69BC6;
color: #7C6DA6;
}
#submit1 {
display: none;
}
#colTwo ul {
margin: 0;
padding: 0;
list-style: none;
}
.dbcontent {
padding: 10px 0 10px 10px;
background: url(images/img4.gif) no-repeat left bottom;
}
.dbbox {
margin-bottom: 10px;
}
#colTwo h2 {
height: 28px;
padding: 4px 0 0 10px;
background: url(images/img3.gif) no-repeat;
letter-spacing: -1px;
font-size: 1.2em;
color: #FFFFFF;
}
/* Footer */
#footer1 {
text-align: center;
}
#footer1 ul {
list-style: none;
}
#footer1 li {
display: inline;
padding: 0 5px;
}
#footer {
width: 526px;
margin: 0 auto;
padding: 10px 0;
border-top: 1px solid #A396C4;
}
#footer p {
text-align: center;
font-size: x-small;
}
I've integrated some ASP code into an HTML file for my page. But unfortunatley, the end result is a jumbled mess. I think its a simple solution to a simple problem, but I just cant see it. Any help?
<%@ Master Language="VB" AutoEventWireup="true" ClassName="SubTemplate" Inherits="CSD.Foundation.UserInterface.TemplateMaster" %>
<%@ Register Src="~/Controls/NewsletterBox.ascx" TagPrefix="csd" TagName="NewsletterBox" %>
<%@ Register Src="~/Controls/ShoppingCartBox.ascx" TagPrefix="csd" TagName="ShoppingCartBox" %>
<%@ Register Src="~/Controls/UserMenu.ascx" TagPrefix="csd" TagName="UserMenu" %>
<%@ Register Src="~/Controls/LoginBox.ascx" TagPrefix="csd" TagName="LoginBox" %>
<%@ Register Src="~/Controls/Logo.ascx" TagPrefix="csd" TagName="Logo" %>
<%@ Import Namespace="CSD.Foundation" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>The Website Toolkit</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body runat="server">
<form id="Main" runat="server">
<div id="header">
<csd:Logo runat="server" />
</div>
<div id="content">
<div id="menu">
<!-- Main Menu goes here -->
<asp:Menu ID="mnuHeader" runat="server"
SkinID="HeaderMenu"
DataSourceID="SiteMapDataSource1"
Orientation="Horizontal"
MaximumDynamicDisplayLevels="0"
SkipLinkText=""
StaticDisplayLevels="1" />
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" StartingNodeOffset="0" ShowStartingNode="false" />
</div>
<div id="colOne">
<div id="breadcrumb">
<asp:SiteMapPath ID="SiteMapPath1" runat="server" PathSeparatorStyle-CssClass="separator" PathSeparator=" " />
</div>
<asp:ContentPlaceHolder ID="MainContentHolder" runat="server">
<!-- Content for each page of the site is dynamically input here -->
</asp:ContentPlaceHolder>
</div>
<div id="colTwo">
<!-- Loginbox goes here -->
<csd:LoginBox ID="LoginBox1" runat="Server" />
<!-- Left User Menu goes here -->
<csd:UserMenu ID="UserMenu1" runat="server" Visible="True" />
<!-- ShoppingCartBox goes here -->
<csd:ShoppingCartBox ID="ShoppingCartBox1" runat="server" />
<!-- NewsletterBox goes here -->
<csd:NewsletterBox ID="NewsletterBox1" runat="server" />
</div>
<div style="clear: both;"> </div>
</div>
<div id="footer">
<div id="footer1">
<!-- Footer Menu goes here -->
<asp:Menu ID="mnuFooter" runat="server"
style="margin-left:auto; margin-right:auto;"
CssClass="footermenulink"
DataSourceID="SiteMapDataSource1"
Orientation="Horizontal"
MaximumDynamicDisplayLevels="0"
SkipLinkText=""
StaticDisplayLevels="1"
ShowStartingNode="false" />
</div>
<p id="legal">©2009 All Rights Reserved. | Designed by <a href="http://www.freecsstemplates.org/" target="_blank">Free CSS Templates</a></p>
<p>Powered by <a href="" target="_blank"> </a> <br />
</div>
</form>
</body>
</html>
and the css
body {
margin: 0;
padding: 0;
background: #FFFFFF url(images/img1.gif) repeat-x;
font: normal small "Trebuchet MS", Arial, Helvetica, sans-serif;
color: #6E697D;
}
form, h1, h2, h3 {
margin: 0;
padding: 0 0 15px 0;
text-transform: lowercase;
color: #7C6DA6;
}
h3
{
padding-top: 10px;
}
blockquote {
font-style: italic;
}
a {
text-decoration: none;
color: #4E3A85;
}
a:hover {
text-decoration: underline;
}
/* Header */
#header {
width: 905px;
height: 80px;
margin: 0 auto;
}
#header h1 {
float: left;
padding: 30px 0 0 13px;
letter-spacing: -4px;
font-size: 3em;
}
#header h2 {
float: right;
padding: 52px 13px 0 0;
font-size: 1.2em;
vertical-align: bottom;
}
#header a {
text-decoration: none;
color: #7C6DA6;
}
/* Menu */
#menu {
/* width: 520px; */
width: 894px;
height: 50px;
padding: 13px 13px 0 13px;
}
#menu ul {
margin: 0;
padding: 0;
list-style: none;
}
#menu li {
display: inline;
}
#menu a {
display: block;
float: left;
width: 125px;
height: 40px;
padding: 10px 0 0 0;
background: url(images/img5.gif) no-repeat;
text-align: center;
text-transform: lowercase;
text-decoration: none;
letter-spacing: -2px;
font-size: 1.8em;
color: #FFFFFF;
}
#menu .first a {
background: none;
}
#menu a:hover {
color: #7C6DA6;
}
/* Content */
#content {
width: 955px;
margin: 0 auto;
padding: 0;
background: #FFFFFF url(images/img2.gif) no-repeat;
}
/* Column One */
#breadcrumb {
margin: 10px 0;
}
#colOne {
float: left;
width: 600px;
padding: 20px 0 0 30px;
margin: 0 auto;
}
#colOne a {
border-bottom: 1px dotted #7C6DA6;
}
#colOne a:hover {
border: none;
}
#colOne .post {
margin-bottom: 30px;
border-bottom: 1px solid #E6E2F1;
}
#colOne .title {
letter-spacing: -2px;
font-size: 1.6em;
}
#colOne .posted {
font-size: x-small;
}
#colOne .meta {
height: 25px;
padding: 10px 0 0 0;
background: url(images/img7.gif) no-repeat right bottom;
}
#colOne .meta p {
margin: 0;
padding: 0;
font-size: x-small;
}
/* Column Two */
#colTwo {
float: right;
width: 180px;
padding: 20px 60px 0 0;
}
#textfield1 {
width: 145px;
padding: 2px 0 2px 15px;
background: #F3F0F9 url(images/img6.gif) no-repeat left center;
border: 1px solid #A69BC6;
color: #7C6DA6;
}
#submit1 {
display: none;
}
#colTwo ul {
margin: 0;
padding: 0;
list-style: none;
}
.dbcontent {
padding: 10px 0 10px 10px;
background: url(images/img4.gif) no-repeat left bottom;
}
.dbbox {
margin-bottom: 10px;
}
#colTwo h2 {
height: 28px;
padding: 4px 0 0 10px;
background: url(images/img3.gif) no-repeat;
letter-spacing: -1px;
font-size: 1.2em;
color: #FFFFFF;
}
/* Footer */
#footer1 {
text-align: center;
}
#footer1 ul {
list-style: none;
}
#footer1 li {
display: inline;
padding: 0 5px;
}
#footer {
width: 526px;
margin: 0 auto;
padding: 10px 0;
border-top: 1px solid #A396C4;
}
#footer p {
text-align: center;
font-size: x-small;
}