I am working on familiarizing myself with the MVC on ASP.NET. I have on my global.asax
routes.MapRoute("Dept", "Dept/Invoice/{Category}/{Name}",
new {controller = "Dept", action = "Invoice", Category = "", Name = ""});
The Controller.cs code gets the data and put it in a table which is fine. My html starts...
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BMICPolicy.Dept>" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link rel="Stylesheet" type="text/css" href="../../Content/Test.css" />
<html xmlns="http://www.w3.org/1999/xhtml">
Style Sheet -
body
{
font-family: Arial, Verdana, Book Antiqua, Sans-Serif;
font-size: 12px;
width: 100%;
height: 100%;
min-height: 100%;
text-align: center;
text-align: -moz-center;
padding: 0px;
margin: 0px;
position: relative;
}
table
{
border: solid 1px #000000;
border-collapse: collapse;
}
table td
{
padding: 5px;
border: solid 1px #000000;
}
table th
{
padding: 6px 5px;
background-color: #729FCB;
border: solid 1px #000000;
text-align: center;
}
thead
{
/*font-size: medium;*/
font: large, bold;
text-align: center;
}
I am not sure why the Style sheet only works when I enter up to "Category" and my style sheet is completely disregarded when I type the name in the address bar (Body font style, table, td, th, thead, etc...). Am I missing something?