Here's my Content1 File which imports a base template:
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h1> Structured Content </h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.</p>
The CSS:
h1 {
border-bottom: 3px solid #cc9900;
font: 2.75em/1.75em arial, helvetica, sans-serif;
color: #996600;
background:#000;
}
ul {
list-style-type:none;
}
body {
margin: 0;
padding: 1em;
background-color:#ffffff;
font: 75%/1.75em "Trebuchet MS", Verdana, sans-serif;
color: #006600;
}
#list {
margin: 1em 0 7em -3em;
padding: 1em 0 0 0;
background-color: #fff;
color: #996600;
width: 25%;
float: left;
}
#header, #footer {
margin: 0;
padding: 0;
color: #996600;
}
And the template file...
<!DOCTYPE html>
<html>
<head>
<title> Structured Content </title>
<link rel="stylesheet" type="text/css" href="@Href("~/Views/Shared/Styles/Site.css")" />
</head>
<body>
@RenderPage("_Header2.cshtml")
<div id="main">
@RenderBody()
</div>
@RenderPage("_Footer.cshtml")
</body>
</html>
Is there anything which I'm doing wrong? I'm on literally 46 hours without sleep, so if I miss something which seemed pretty obvious then that's why.

New Topic/Question
Reply



MultiQuote



|