Live DEMO
Sample #1 (max-width: 65em; overflow: auto; background-color: #F0F0E8;)
protected void Page_Load(object sender, EventArgs e)
{
wc = WebConfig.GetWebConfig();
pv = PublicVariable.GetPublicVarialbe(bolDebugMode: false, bolTraceMode: false, lblMessage: lblMessage, lblTrace: lblMessage);
Session[ssPublicVariableObject] = pv;
lblMessage.Text = "";
if (!IsPostBack)
{
appName.InnerText = wc.strAppName; // Home, Liberal Arts,...
appType.InnerText = String.Format("{0}({1})", wc.strAppType, wc.strAppVersion); // PROD(V1.0.0) or DEVL(V1.0.0)
appSub.InnerText = wc.strPoweredBy; // Powered by ASP.NET 4.x
lblDate.Text = String.Format("{0:yyyy/MM/dd}", DateTime.UtcNow.AddHours(9));
lblTime.Text = String.Format("{0:HH:mm:ss}", DateTime.UtcNow.AddHours(9));
copyRight.InnerHtml = wc.strCopyRight;
AppLayer.Stats.UpdateViewCount(pv, "Root_Menu_HtmlCss_Article_Article007.aspx");
}
}
Sample #2 (border:1px solid #999; padding: 5px;)
protected void Page_Load(object sender, EventArgs e)
{
wc = WebConfig.GetWebConfig();
pv = PublicVariable.GetPublicVarialbe(bolDebugMode: false, bolTraceMode: false, lblMessage: lblMessage, lblTrace: lblMessage);
Session[ssPublicVariableObject] = pv;
lblMessage.Text = "";
if (!IsPostBack)
{
appName.InnerText = wc.strAppName; // Home, Liberal Arts,...
appType.InnerText = String.Format("{0}({1})", wc.strAppType, wc.strAppVersion); // PROD(V1.0.0) or DEVL(V1.0.0)
appSub.InnerText = wc.strPoweredBy; // Powered by ASP.NET 4.x
lblDate.Text = String.Format("{0:yyyy/MM/dd}", DateTime.UtcNow.AddHours(9));
lblTime.Text = String.Format("{0:HH:mm:ss}", DateTime.UtcNow.AddHours(9));
copyRight.InnerHtml = wc.strCopyRight;
AppLayer.Stats.UpdateViewCount(pv, "Root_Menu_HtmlCss_Article_Article007.aspx");
}
}
Sample #3 (border-left-width: 10px;)
protected void Page_Load(object sender, EventArgs e)
{
wc = WebConfig.GetWebConfig();
pv = PublicVariable.GetPublicVarialbe(bolDebugMode: false, bolTraceMode: false, lblMessage: lblMessage, lblTrace: lblMessage);
Session[ssPublicVariableObject] = pv;
lblMessage.Text = "";
if (!IsPostBack)
{
appName.InnerText = wc.strAppName; // Home, Liberal Arts,...
appType.InnerText = String.Format("{0}({1})", wc.strAppType, wc.strAppVersion); // PROD(V1.0.0) or DEVL(V1.0.0)
appSub.InnerText = wc.strPoweredBy; // Powered by ASP.NET 4.x
lblDate.Text = String.Format("{0:yyyy/MM/dd}", DateTime.UtcNow.AddHours(9));
lblTime.Text = String.Format("{0:HH:mm:ss}", DateTime.UtcNow.AddHours(9));
copyRight.InnerHtml = wc.strCopyRight;
AppLayer.Stats.UpdateViewCount(pv, "Root_Menu_HtmlCss_Article_Article007.aspx");
}
}
Sample #4 (color:white; background-color: black; border-left-color: darkcyan;)
protected void Page_Load(object sender, EventArgs e)
{
wc = WebConfig.GetWebConfig();
pv = PublicVariable.GetPublicVarialbe(bolDebugMode: false, bolTraceMode: false, lblMessage: lblMessage, lblTrace: lblMessage);
Session[ssPublicVariableObject] = pv;
lblMessage.Text = "";
if (!IsPostBack)
{
appName.InnerText = wc.strAppName; // Home, Liberal Arts,...
appType.InnerText = String.Format("{0}({1})", wc.strAppType, wc.strAppVersion); // PROD(V1.0.0) or DEVL(V1.0.0)
appSub.InnerText = wc.strPoweredBy; // Powered by ASP.NET 4.x
lblDate.Text = String.Format("{0:yyyy/MM/dd}", DateTime.UtcNow.AddHours(9));
lblTime.Text = String.Format("{0:HH:mm:ss}", DateTime.UtcNow.AddHours(9));
copyRight.InnerHtml = wc.strCopyRight;
AppLayer.Stats.UpdateViewCount(pv, "Root_Menu_HtmlCss_Article_Article007.aspx");
}
}
Sample #5 (add line number; CSS+jQuery)
protected void Page_Load(object sender, EventArgs e)
{
wc = WebConfig.GetWebConfig();
pv = PublicVariable.GetPublicVarialbe(bolDebugMode: false, bolTraceMode: false, lblMessage: lblMessage, lblTrace: lblMessage);
Session[ssPublicVariableObject] = pv;
lblMessage.Text = "";
if (!IsPostBack)
{
appName.InnerText = wc.strAppName; // Home, Liberal Arts,...
appType.InnerText = String.Format("{0}({1})", wc.strAppType, wc.strAppVersion); // PROD(V1.0.0) or DEVL(V1.0.0)
appSub.InnerText = wc.strPoweredBy; // Powered by ASP.NET 4.x
lblDate.Text = String.Format("{0:yyyy/MM/dd}", DateTime.UtcNow.AddHours(9));
lblTime.Text = String.Format("{0:HH:mm:ss}", DateTime.UtcNow.AddHours(9));
copyRight.InnerHtml = wc.strCopyRight;
AppLayer.Stats.UpdateViewCount(pv, "Root_Menu_HtmlCss_Article_Article007.aspx");
}
}
pre {
max-width: 65em;
overflow: hidden;
background-color: #F0F0E8;
border: none;
border-left: none;
border-left-width: 0px;
display: normal;
padding: 0px;
}